[FIX] replace sale price precision by price unit in the method prepare_order_line_invoice_line

bzr revid: benoit.guillot@akretion.com.br-20120710231700-m4kdn9khr4di6oy0
This commit is contained in:
Benoit Guillot 2012-07-11 01:17:00 +02:00
parent 40647cd70f
commit df01b9a032
1 changed files with 1 additions and 1 deletions

View File

@ -1205,7 +1205,7 @@ class sale_order_line(osv.osv):
pu = 0.0
if uosqty:
pu = round(line.price_unit * line.product_uom_qty / uosqty,
self.pool.get('decimal.precision').precision_get(cr, uid, 'Sale Price'))
self.pool.get('decimal.precision').precision_get(cr, uid, 'Price Unit'))
fpos = line.order_id.fiscal_position or False
account_id = self.pool.get('account.fiscal.position').map_account(cr, uid, fpos, account_id)
if not account_id: