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
69dd8b18
Commit
69dd8b18
authored
6 years ago
by
Cuauhtémoc Díaz Minor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style(base_cfdi_mixin): black
parent
0b8b3c79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
l10n_mx_ir_attachment_facturae/models/base_cfdi_mixin.py
l10n_mx_ir_attachment_facturae/models/base_cfdi_mixin.py
+4
-3
No files found.
l10n_mx_ir_attachment_facturae/models/base_cfdi_mixin.py
View file @
69dd8b18
...
...
@@ -76,7 +76,8 @@ class BaseCfdi(models.AbstractModel):
help
=
"CFDI realed to the selected record."
,
)
cfdi_folio_fiscal
=
fields
.
Char
(
"CFD-I Folio Fiscal"
,
related
=
"cfdi_id.uuid"
,
"CFD-I Folio Fiscal"
,
related
=
"cfdi_id.uuid"
,
help
=
"Folio used in the electronic invoice"
,
)
cfdi_state
=
fields
.
Selection
(
related
=
"cfdi_id.state"
)
...
...
@@ -112,7 +113,7 @@ class BaseCfdi(models.AbstractModel):
""" Cancels the cfdi related with current record
return True if cancel proceed or false if must wait
"""
if
self
.
cfdi_id
and
self
.
cfdi_id
.
state
in
[
"signed"
,
"done"
,
"waiting"
]:
if
self
.
cfdi_id
and
self
.
cfdi_id
.
state
in
[
"signed"
,
"done"
,
"waiting"
]:
return
self
.
cfdi_id
.
action_cancel
()
def
consult_cfdi_cancellation_status
(
self
):
...
...
@@ -122,5 +123,5 @@ class BaseCfdi(models.AbstractModel):
@
api
.
model
def
unlink_cfdi
(
self
):
'''
Delete de relation
'''
"""
Delete de relation
"""
self
.
cfdi_id
=
False
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