Commit 9f81b018 authored by fedexin40's avatar fedexin40 Committed by Your Name

Changed args for context

parent 84e6c2bc
......@@ -206,7 +206,8 @@ class account_invoice(osv.Model):
res[invoice.id] = fname
return res
def action_cancel_draft(self, cr, uid, ids, *args):
def action_cancel_draft(self, cr, uid, ids, context=None):
context = context or {}
self.write(cr, uid, ids, {
'no_certificado': False,
'certificado': False,
......@@ -220,7 +221,9 @@ class account_invoice(osv.Model):
'cfdi_folio_fiscal': False,
'cfdi_fecha_cancelacion': False
})
return super(account_invoice, self).action_cancel_draft(cr, uid, ids, args)
return super(account_invoice, self).action_cancel_draft(
cr, uid, ids, context=context
)
def action_cancel(self, cr, uid, ids, context=None):
if context is None:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment