From 9388c1b1f1e60139bcbee299df0359ab36da722b Mon Sep 17 00:00:00 2001 From: Joel Grand-Guillaume Date: Wed, 6 Jan 2010 08:10:38 +0100 Subject: [PATCH] [FIX] Stock move valuation now use correctly price_get bzr revid: joel.grandguillaume@camptocamp.com-20100106071038-cp4xu2htyrkz7a3u --- addons/stock/stock.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index d8873a9e0c7..90d431d42f1 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -1352,8 +1352,7 @@ class stock_move(osv.osv): company_id=move.company_id.id pricetype=self.pool.get('product.price.type').browse(cr,uid,move.company_id.property_valuation_price_type.id) - amount_unit=move.product_id.price_get(cr, uid, ids, pricetype.field, context) - + amount_unit=move.product_id.price_get(pricetype.field, context)[move.product_id.id] amount=amount_unit * q or 1.0 # amount = q * move.product_id.standard_price