From 581c8b40ac23b3f99f10add03e6523f36e0aff96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 12 Mar 2013 10:31:15 +0100 Subject: [PATCH] Re-add missing update of cost_price lost in workflow migration issue3051 review704003 --- move.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/move.py b/move.py index 68c9bb08dc..817b95cbc5 100644 --- a/move.py +++ b/move.py @@ -94,7 +94,9 @@ class Move: elif (move.to_location.type != 'storage' # XXX from_location? and move.to_location.type != 'supplier' and move.product.cost_price_method == 'fifo'): - move._update_fifo_out_product_cost_price() + cost_price = move._update_fifo_out_product_cost_price() + if not move.cost_price: + move.cost_price = cost_price move.save() super(Move, cls).do(moves)