[FIX] sale: subtotal of sale order line was computed wrongly
bzr revid: qdp-launchpad@tinyerp.com-20100713082218-mje659vjpyku5w8j
This commit is contained in:
parent
af18cd38cf
commit
c8e3e6b5bd
|
@ -785,8 +785,8 @@ class sale_order_line(osv.osv):
|
|||
res = {}
|
||||
context = context or {}
|
||||
for line in self.browse(cr, uid, ids, context=context):
|
||||
price = line.price_unit * line.product_uom_qty * (1 - (line.discount or 0.0) / 100.0)
|
||||
taxes = tax_obj.compute_all(cr, uid, line.tax_id, line.price_unit, line.product_uom_qty)
|
||||
price = line.price_unit * (1 - (line.discount or 0.0) / 100.0)
|
||||
taxes = tax_obj.compute_all(cr, uid, line.tax_id, price, line.product_uom_qty, line.order_id.partner_invoice_id.id, line.product_id, line.order_id.partner_id)
|
||||
cur = line.order_id.pricelist_id.currency_id
|
||||
res[line.id] = cur_obj.round(cr, uid, cur, taxes['total'])
|
||||
return res
|
||||
|
|
Loading…
Reference in New Issue