Set unit_price for output moves diferent than production product

issue5462
review22941002
This commit is contained in:
Sergi Almacellas Abellana committed 2016-04-07 16:41:03 +02:00
1 parent 00744e6f76
commit 1319df075e
1 file changed
+2
+2
View File
@@ -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()