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
102bad65
Commit
102bad65
authored
6 years ago
by
Cuauhtémoc Díaz Minor
Committed by
agb80
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(account.invoice): se elimina signal de la cancelacion de la factura
Closes
#25
parent
6d491fa7
Pipeline
#5545
passed with stage
in 49 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
l10n_mx_facturae/models/account_invoice.py
l10n_mx_facturae/models/account_invoice.py
+5
-4
No files found.
l10n_mx_facturae/models/account_invoice.py
View file @
102bad65
...
...
@@ -297,10 +297,10 @@ class AccountInvoice(models.Model):
)
cfdi
.
action_validate
()
@
signals
.
invoice_cancel
.
connect
def
action_cancel
(
self
,
cr
,
uid
,
ids
,
context
=
None
):
context
=
dict
(
cont
ext
or
{}
)
for
account_invoice
in
self
.
browse
(
cr
,
uid
,
ids
,
context
=
context
)
:
@
api
.
multi
def
action_cancel
(
self
,):
res
=
super
(
Ac
co
u
nt
Invoice
,
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
...
...
@@ -309,6 +309,7 @@ class AccountInvoice(models.Model):
account_invoice
.
cfdi_folio_fiscal
):
account_invoice
.
cfdi_id
.
action_cancel
()
return
res
@
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