From: Najlaâ Date: Tue, 15 May 2012 08:04:10 +0000 (+0200) Subject: [FIX] event: reset tax for each event to invoice X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=refs%2Fheads%2F5.0;p=odoo%2Fodoo.git [FIX] event: reset tax for each event to invoice bzr revid: nel@tinyerp.com-20120515080410-pf2o5rk7bciohs9w --- diff --git a/addons/event/wizard/make_invoice.py b/addons/event/wizard/make_invoice.py index ac8b2d6..77bf802 100644 --- a/addons/event/wizard/make_invoice.py +++ b/addons/event/wizard/make_invoice.py @@ -45,7 +45,6 @@ def _makeInvoices(self, cr, uid, data, context): invoices = {} invoice_ids = [] create_ids=[] - tax_ids=[] pool_obj=pooler.get_pool(cr.dbname) inv_create = 0 @@ -57,6 +56,7 @@ def _makeInvoices(self, cr, uid, data, context): obj_lines=pool_obj.get('account.invoice.line') for reg in data_event_reg: + tax_ids=[] if reg.state=='draft': inv_reject = inv_reject + 1 inv_rej_reason += "ID "+str(reg.id)+": Invoice cannot be created if the registration is in draft state. \n"