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
l10n_mx_facturae
Commits
871c2617
Commit
871c2617
authored
6 years ago
by
Cuauhtémoc Díaz Minor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(account.invoice): se manda a llamar la funcion que verifica si se puede cancelar
parent
97bac4a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
l10n_mx_facturae/models/account_invoice.py
l10n_mx_facturae/models/account_invoice.py
+2
-2
No files found.
l10n_mx_facturae/models/account_invoice.py
View file @
871c2617
...
...
@@ -300,17 +300,17 @@ class AccountInvoice(models.Model):
@
api
.
multi
def
action_cancel
(
self
,):
res
=
super
(
AccountInvoice
,
self
).
action_cancel
()
for
account_invoice
in
self
:
# Maybe a third test could review state, but since
# button cancel only is displayed in open state, we decided to not
# used third test
account_invoice
.
check_if_can_cancel
()
if
(
account_invoice
.
journal_id
.
sign_sat
and
account_invoice
.
cfdi_folio_fiscal
):
account_invoice
.
cfdi_id
.
action_cancel
()
return
res
super
(
AccountInvoice
,
self
).
action_cancel
()
@
staticmethod
def
_sanitize
(
text
):
...
...
This diff is collapsed.
Click to expand it.
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