Fix travis errors

This commit is contained in:
cubells
2017-07-02 11:46:33 +02:00
committed by Marc Poch
parent c2f15c6f10
commit ae0334f751
12 changed files with 2 additions and 2 deletions

0
stock_orderpoint_automatic_creation/README.rst Executable file → Normal file
View File

0
stock_orderpoint_automatic_creation/__init__.py Executable file → Normal file
View File

0
stock_orderpoint_automatic_creation/__manifest__.py Executable file → Normal file
View File

0
stock_orderpoint_automatic_creation/models/__init__.py Executable file → Normal file
View File

View File

View File

View File

View File

@@ -26,7 +26,7 @@ class ResCompany(models.Model):
@api.constrains('orderpoint_product_max_qty', 'orderpoint_product_min_qty')
def _check_orderpoint_product_qty(self):
for orderpoint in self:
if (orderpoint.orderpoint_product_max_qty < 0 or
orderpoint.orderpoint_product_min_qty < 0):
if orderpoint.orderpoint_product_max_qty < 0 \
or orderpoint.orderpoint_product_min_qty < 0:
raise exceptions.Warning(
_('Orderpoint product quantity cannot be negative'))

0
stock_orderpoint_automatic_creation/tests/__init__.py Executable file → Normal file
View File

View File

View File