[FIX] Fix wrong unit price on invoice genereted by stock picking when uos is used
[IMP] Rounding not necessary
This commit is contained in:
parent
7a979b2d3e
commit
def9222bd9
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue