Reviewers: ,
Please review this at http://codereview.tryton.org/704003/
Affected files:
M move.py
Index: move.py
===================================================================
--- a/move.py
+++ b/move.py
@@ -94,7 +94,9 @@
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)
--
--
[email protected] mailing list
---
You received this message because you are subscribed to the Google Groups "tryton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.