From 768afdb59870ee944f3324fdd50d417ff32dbfa1 Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Thu, 17 Dec 2009 16:14:13 +0100 Subject: [PATCH] [REV] Revert the code about the taxes in the supplier invoice bzr revid: stephane@openerp.com-20091217151413-kll8yyzy0m4gauj9 --- addons/account/invoice.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/addons/account/invoice.py b/addons/account/invoice.py index c37ba9f577b..77a96b3140e 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -979,14 +979,8 @@ class account_invoice_line(osv.osv): p = l[2].get('price_unit', 0) * (1-l[2].get('discount', 0)/100.0) t = t - (p * l[2].get('quantity')) taxes = l[2].get('invoice_line_tax_id') - if taxes: - if context.get('client','') == 'web': - tax_ids = taxes - elif len(taxes[0]) >= 3 and taxes[0][2]: - tax_ids = taxes[0][2] - else: - continue - taxes = tax_obj.browse(cr, uid, tax_ids) + if len(taxes[0]) >= 3 and 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