Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
l10n_mx
Facturacion
Commits
9f81b018
Commit
9f81b018
authored
9 years ago
by
fedexin40
Committed by
Your Name
9 years ago
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed args for context
parent
84e6c2bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
l10n_mx_facturae/invoice.py
l10n_mx_facturae/invoice.py
+5
-2
No files found.
l10n_mx_facturae/invoice.py
View file @
9f81b018
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Agustín Cruz
@agb80
mentioned in issue
#61 (closed)
·
9 years ago
mentioned in issue
#61 (closed)
mentioned in issue #61
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment