From 820bbedab2c54b7ad51461836bb68e73d41a3664 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 13 Apr 2013 11:54:30 +0200 Subject: [PATCH] Call _update_fifo_out_product_cost_price for any outgoing moves issue3138 review781002 --- move.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/move.py b/move.py index a2ea64d544..1fd1942863 100644 --- a/move.py +++ b/move.py @@ -95,8 +95,8 @@ class Move: and move.from_location.type == 'storage' and move.product.cost_price_method == 'fifo'): move._update_product_cost_price('out') - elif (move.to_location.type != 'storage' # XXX from_location? - and move.to_location.type != 'supplier' + elif (move.from_location.type == 'storage' + and move.to_location.type != 'storage' and move.product.cost_price_method == 'fifo'): cost_price = move._update_fifo_out_product_cost_price() if not move.cost_price: