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,