From 1319df075e1cbd39bcb0ee3e3a9e04735b08d8f5 Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Thu, 7 Apr 2016 16:41:03 +0200 Subject: [PATCH] Set unit_price for output moves diferent than production product issue5462 review22941002 --- production.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/production.py b/production.py index 2b2f0a7d17..c663b90774 100644 --- a/production.py +++ b/production.py @@ -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()