diff --git a/inventory.py b/inventory.py index 68c9455276..cee467fdbf 100644 --- a/inventory.py +++ b/inventory.py @@ -231,8 +231,7 @@ class Inventory(Workflow, ModelSQL, ModelView): # Update existing lines for line in inventory.lines: - if not (line.product.active and - line.product.type == 'goods' + if not (line.product.type == 'goods' and not line.product.consumable): Line.delete([line]) continue