Fix test on consumable in complete_lines
This commit is contained in:
1 parent
4d7de08434
commit
b91a1b2405
1 file changed
+1
-1
+1
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user