From 11aa32b7368c1a213f1e971ebe7fc4f1d97c4bef Mon Sep 17 00:00:00 2001 From: ced <> Date: Tue, 30 Oct 2007 09:06:42 +0000 Subject: [PATCH] Use the right base amount for taxe on invoice. bzr revid: ced-3ee74ba0f7a15f294dcbb220b161687a32be347b --- addons/account/invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/invoice.py b/addons/account/invoice.py index 90dfd52d500..90027f056ae 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -885,7 +885,7 @@ class account_invoice_tax(osv.osv): val['amount'] = cur_obj.round(cr, uid, cur, tax['amount']) val['manual'] = False val['sequence'] = tax['sequence'] - val['base'] = tax['price_unit'] * line['quantity'] * (1-(line.discount or 0.0)/100.0) + val['base'] = tax['price_unit'] * line['quantity'] if inv.type in ('out_invoice','in_invoice'): val['base_code_id'] = tax['base_code_id']