[FIX] account: Fixed Manual Global Tax problem

lp bug: https://launchpad.net/bugs/672684 fixed

bzr revid: pso@tinyerp.com-20101116061752-t12esxcypkbasfzm
This commit is contained in:
Renato Lima 2010-11-16 11:47:52 +05:30 committed by pso
parent 027e21647b
commit 18f7655f91
1 changed files with 1 additions and 1 deletions

View File

@ -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})