Fix test on consumable in complete_lines

This commit is contained in:
Cédric Krier committed 2013-01-01 22:23:32 +01:00
1 parent 4d7de08434
commit b91a1b2405
1 file changed
+1 -1
+1 -1
View File
@@ -196,7 +196,7 @@ class Inventory(Workflow, ModelSQL, ModelView):
# Create lines if needed
for product_id in product_qty:
if (product2type[product_id] != 'goods'
and not product2consumable[product_id]):
or product2consumable[product_id]):
continue
quantity, uom_id = product_qty[product_id]
values = Line.create_values4complete(product_id, inventory,