From 06de55649b69aea1501b968016f73c85e81c09e7 Mon Sep 17 00:00:00 2001 From: Josse Colpaert Date: Fri, 17 Oct 2014 14:10:06 +0200 Subject: [PATCH] [FIX] Correct price correction courtesy of richard_willowit #2983 #2985 --- addons/purchase/purchase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index 9fe0238bb30..b87061696e4 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -701,7 +701,7 @@ class purchase_order(osv.osv): product_uom = self.pool.get('product.uom') price_unit = order_line.price_unit if order_line.product_uom.id != order_line.product_id.uom_id.id: - price_unit *= order_line.product_uom.factor + price_unit *= order_line.product_uom.factor / order_line.product_id.uom_id.factor if order.currency_id.id != order.company_id.currency_id.id: #we don't round the price_unit, as we may want to store the standard price with more digits than allowed by the currency price_unit = self.pool.get('res.currency').compute(cr, uid, order.currency_id.id, order.company_id.currency_id.id, price_unit, round=False, context=context)