From 58e403bc2346dd9f39a6f918b771575dc857a9aa Mon Sep 17 00:00:00 2001 From: "ron@tinyerp.com" <> Date: Tue, 21 Jun 2011 15:48:46 +0530 Subject: [PATCH] [IMP]stock:Improvement in code bzr revid: ron@tinyerp.com-20110621101846-1s9azk4jlwkpzwd9 --- addons/stock/stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index f6e4d1f08ff..a8b429f4b8b 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -1257,7 +1257,7 @@ class stock_picking(osv.osv): if (pick.type == 'in') and (move.product_id.cost_method == 'average'): new_price_unit = move.product_id.standard_price else: - new_price_unit = price_unit + new_price_unit = self.get_current_cost_price(cr, uid, ids, pick, move, product_price, context=context) move_obj.write(cr, uid, [move.id], { 'product_qty' : move.product_qty - product_qty,