mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
Fix travis errors
This commit is contained in:
0
stock_orderpoint_automatic_creation/README.rst
Executable file → Normal file
0
stock_orderpoint_automatic_creation/README.rst
Executable file → Normal file
0
stock_orderpoint_automatic_creation/__init__.py
Executable file → Normal file
0
stock_orderpoint_automatic_creation/__init__.py
Executable file → Normal file
0
stock_orderpoint_automatic_creation/__manifest__.py
Executable file → Normal file
0
stock_orderpoint_automatic_creation/__manifest__.py
Executable file → Normal file
0
stock_orderpoint_automatic_creation/models/__init__.py
Executable file → Normal file
0
stock_orderpoint_automatic_creation/models/__init__.py
Executable file → Normal file
0
stock_orderpoint_automatic_creation/models/product_category.py
Executable file → Normal file
0
stock_orderpoint_automatic_creation/models/product_category.py
Executable file → Normal file
0
stock_orderpoint_automatic_creation/models/product_product.py
Executable file → Normal file
0
stock_orderpoint_automatic_creation/models/product_product.py
Executable file → Normal file
0
stock_orderpoint_automatic_creation/models/product_template.py
Executable file → Normal file
0
stock_orderpoint_automatic_creation/models/product_template.py
Executable file → Normal file
4
stock_orderpoint_automatic_creation/models/res_company.py
Executable file → Normal file
4
stock_orderpoint_automatic_creation/models/res_company.py
Executable file → Normal 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
0
stock_orderpoint_automatic_creation/tests/__init__.py
Executable file → Normal file
0
stock_orderpoint_automatic_creation/tests/test_stock_orderpoint_at_creation.py
Executable file → Normal file
0
stock_orderpoint_automatic_creation/tests/test_stock_orderpoint_at_creation.py
Executable file → Normal file
0
stock_orderpoint_automatic_creation/views/product_views.xml
Executable file → Normal file
0
stock_orderpoint_automatic_creation/views/product_views.xml
Executable file → Normal file
0
stock_orderpoint_automatic_creation/views/res_company_views.xml
Executable file → Normal file
0
stock_orderpoint_automatic_creation/views/res_company_views.xml
Executable file → Normal file
Reference in New Issue
Block a user