Create move for produced product without bom as output

Closes #12024
This commit is contained in:
Cédric Krier committed 2023-01-19 11:55:09 +01:00
1 parent 77c949aa92
commit ec5f7b8890
1 file changed
+1 -1
+1 -1
View File
@@ -489,7 +489,7 @@ class Production(ShipmentAssignMixin, Workflow, ModelSQL, ModelView):
if not production.bom:
if production.product:
move = production._move(
'input', production.product, production.uom,
'output', production.product, production.uom,
production.quantity)
if move:
move.unit_price = Decimal(0)