Fix test on consumable in complete_lines
(transplanted from e77faf01ac6412844f2a17b7160682e7ea7e2b11)
This commit is contained in:
1 parent
5dfef5fab4
commit
e9832a1966
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