Skip to content
Snippets Groups Projects
Commit def9222b authored by Adrien Peiffer's avatar Adrien Peiffer Committed by Josse Colpaert
Browse files

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

[IMP] Rounding not necessary
parent 7a979b2d
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment