mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
fix pep8 W503
This commit is contained in:
committed by
Carlos Roca
parent
2f68ab5c92
commit
b0af83dd93
@@ -21,7 +21,7 @@
|
||||
|
||||
{'name': 'Stock Reserve Sales',
|
||||
'version': '0.1',
|
||||
'author': 'Camptocamp',
|
||||
'author': "Camptocamp,Odoo Community Association (OCA)",
|
||||
'category': 'Warehouse',
|
||||
'license': 'AGPL-3',
|
||||
'complexity': 'normal',
|
||||
|
||||
@@ -123,11 +123,11 @@ class SaleOrderLine(models.Model):
|
||||
def _is_stock_reservable(self):
|
||||
for line in self:
|
||||
reservable = False
|
||||
if (not (line.state != 'draft'
|
||||
or line._get_procure_method() == 'make_to_order'
|
||||
or not line.product_id
|
||||
or line.product_id.type == 'service')
|
||||
and not line.reservation_ids):
|
||||
if (not (line.state != 'draft' or
|
||||
line._get_procure_method() == 'make_to_order' or
|
||||
not line.product_id or
|
||||
line.product_id.type == 'service') and
|
||||
not line.reservation_ids):
|
||||
reservable = True
|
||||
line.is_stock_reservable = reservable
|
||||
|
||||
|
||||
Reference in New Issue
Block a user