Re-add missing update of cost_price lost in workflow migration

issue3051
review704003
This commit is contained in:
Cédric Krier committed 2013-03-12 10:31:15 +01:00
1 parent 01a908ca9d
commit 581c8b40ac
1 file changed
+3 -1
+3 -1
View File
@@ -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)