bzr revid: jvo@tinyerp.com-20100517055345-6lo62607v430blna
This commit is contained in:
Jay (Open ERP)
2010-05-17 11:23:45 +05:30
parent 4df75b6474
commit 6e4955ec78
+1 -1
View File
@@ -1163,7 +1163,7 @@ class account_invoice_line(osv.osv):
t = t - (p * l[2].get('quantity'))
taxes = l[2].get('invoice_line_tax_id')
if len(taxes[0]) >= 3 and taxes[0][2]:
taxes=tax_obj.browse(cr, uid, taxes[0][2])
taxes = tax_obj.browse(cr, uid, taxes[0][2])
for tax in tax_obj.compute(cr, uid, taxes, p,l[2].get('quantity'), context.get('address_invoice_id', False), l[2].get('product_id', False), context.get('partner_id', False)):
t = t - tax['amount']
return t