From 740f485e2a81c6045594759dee38a62744acd660 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Najla=C3=A2?= Date: Tue, 15 May 2012 10:04:10 +0200 Subject: [PATCH] [FIX] event: reset tax for each event to invoice bzr revid: nel@tinyerp.com-20120515080410-pf2o5rk7bciohs9w --- addons/event/wizard/make_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 1.7.10.4