fix pep8 W503

This commit is contained in:
Alexandre Fayolle
2015-02-16 10:38:27 +01:00
committed by Carlos Roca
parent 2f68ab5c92
commit b0af83dd93
2 changed files with 6 additions and 6 deletions

View File

@@ -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',

View File

@@ -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