[FIX] Fix wrong unit price on invoice genereted by stock picking when uos is used

[IMP] Rounding not necessary
This commit is contained in:
Adrien Peiffer 2014-11-26 15:23:34 +01:00 committed by Josse Colpaert
parent 7a979b2d3e
commit def9222bd9
1 changed files with 2 additions and 0 deletions

View File

@ -390,6 +390,8 @@ class stock_move(osv.osv):
sale_line.order_id.partner_id, context=context)[sale_line.order_id.pricelist_id.id]
else:
res['price_unit'] = sale_line.price_unit
uos_coeff = move.product_uom_qty and move.product_uos_qty / move.product_uom_qty or 1.0
res['price_unit'] = res['price_unit'] / uos_coeff
return res