From 18f7655f915f94fd8771e8c2c8a8d9ab3f45a728 Mon Sep 17 00:00:00 2001 From: Renato Lima <> Date: Tue, 16 Nov 2010 11:47:52 +0530 Subject: [PATCH] [FIX] account: Fixed Manual Global Tax problem lp bug: https://launchpad.net/bugs/672684 fixed bzr revid: pso@tinyerp.com-20101116061752-t12esxcypkbasfzm --- 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 af26e7d2d28..af65a50f48e 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -659,7 +659,7 @@ class account_invoice(osv.osv): ctx = context.copy() ait_obj = self.pool.get('account.invoice.tax') for id in ids: - cr.execute("DELETE FROM account_invoice_tax WHERE invoice_id=%s", (id,)) + cr.execute("DELETE FROM account_invoice_tax WHERE invoice_id=%s AND manual is False", (id,)) partner = self.browse(cr, uid, id, context=ctx).partner_id if partner.lang: ctx.update({'lang': partner.lang})