From f49e0dd3b2f0bbba133d08955ec17ab60d5b91bc Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Mon, 23 Sep 2013 21:42:34 +0200 Subject: [PATCH] [FIX] stock_account: update cost price of product when it needs it bzr revid: qdp-launchpad@openerp.com-20130923194234-36iekv6z92a9pp4g --- addons/stock_account/stock_account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock_account/stock_account.py b/addons/stock_account/stock_account.py index 1995a082770..1d5ec10aea2 100644 --- a/addons/stock_account/stock_account.py +++ b/addons/stock_account/stock_account.py @@ -71,7 +71,7 @@ class stock_quant(osv.osv): #update the standard price of the product, only if we would have done it if we'd have had enough stock at first, which means #1) the product cost's method is 'real' #2) we just fixed a negative quant caused by an outgoing shipment - if not quant.product_id.cost_method == 'real' and quant.location_id.usage != 'internal': + if quant.product_id.cost_method == 'real' and quant.location_id.usage != 'internal': self.pool.get('stock.move')._store_average_cost_price(cr, uid, move, context=context) super(stock_quant, self)._price_update(cr, uid, quant_ids, newprice, context=context)