Skip to content
Snippets Groups Projects
Commit 3f5276b9 authored by Stéphane Wirtel's avatar Stéphane Wirtel
Browse files

[FIX] Initialize the context if this one is none

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

bzr revid: stephane@tinyerp.com-20090202071001-wb1k2nv0y3xhq0pg
parent 3f62a9b4
No related branches found
No related tags found
No related merge requests found
......@@ -427,6 +427,8 @@ class account_invoice(osv.osv):
return ok
def button_reset_taxes(self, cr, uid, ids, context=None):
if not context:
context = {}
ait_obj = self.pool.get('account.invoice.tax')
for id in ids:
cr.execute("DELETE FROM account_invoice_tax WHERE invoice_id=%s", (id,))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment