From e9832a1966f9ee230b186252be36e12729dfbcaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 1 Jan 2013 22:23:32 +0100 Subject: [PATCH] Fix test on consumable in complete_lines (transplanted from e77faf01ac6412844f2a17b7160682e7ea7e2b11) --- inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inventory.py b/inventory.py index 1817fd533f..d8de0fb22e 100644 --- a/inventory.py +++ b/inventory.py @@ -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,