Set unit_price for output moves diferent than production product
issue5462 review22941002
This commit is contained in:
1 parent
00744e6f76
commit
1319df075e
1 file changed
+2
@@ -429,6 +429,8 @@ class Production(Workflow, ModelSQL, ModelView):
|
||||
if product == self.product:
|
||||
move.unit_price = Decimal(
|
||||
cost / Decimal(str(quantity))).quantize(digit)
|
||||
else:
|
||||
move.unit_price = Decimal(0)
|
||||
move.save()
|
||||
self._set_move_planned_date()
|
||||
|
||||
|
||||
Reference in new issue
Block a user