From b91a1b2405bbe6db6e7522f80bb01013c6fa01e8 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 --- inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inventory.py b/inventory.py index ed297265da..7a48b6024e 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,