Skip to content

Commit

Permalink
[FIX] Correct price correction courtesy of richard_willowit odoo#2983 o…
Browse files Browse the repository at this point in the history
  • Loading branch information
jco-odoo committed Oct 17, 2014
1 parent 2893198 commit 06de556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/purchase/purchase.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ def _prepare_order_line_move(self, cr, uid, order, order_line, picking_id, group
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)
Expand Down

0 comments on commit 06de556

Please sign in to comment.