Re-add missing update of cost_price lost in workflow migration
issue3051 review704003
This commit is contained in:
1 parent
01a908ca9d
commit
581c8b40ac
1 file changed
+3
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user