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
a62b3dbe
Commit
a62b3dbe
authored
6 years ago
by
Cuauhtémoc Díaz Minor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style(ir.attachment.facturae.mx): pylint analysis
parent
fb6bd50b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
l10n_mx_ir_attachment_facturae/models/ir_attachment_facturae.py
...x_ir_attachment_facturae/models/ir_attachment_facturae.py
+5
-2
No files found.
l10n_mx_ir_attachment_facturae/models/ir_attachment_facturae.py
View file @
a62b3dbe
...
...
@@ -117,6 +117,7 @@ def parse_xml_string(xmlstr):
class
IrAttachmentFacturaeMx
(
models
.
Model
):
# pylint: disable=R0904
_name
=
"ir.attachment.facturae.mx"
_inherit
=
[
"mail.thread"
,
"ir.needaction_mixin"
]
_rec_name
=
"uuid"
...
...
@@ -418,7 +419,8 @@ class IrAttachmentFacturaeMx(models.Model):
raise
UserError
(
_
(
"You can't delete signed CFDI!
\n
Please cancel it first"
))
return
super
(
IrAttachmentFacturaeMx
,
self
).
unlink
()
def
action_sign_sat
(
self
,
param_pacs
,
xml_data
):
@
classmethod
def
action_sign_sat
(
cls
,
param_pacs
,
xml_data
):
"""Function use to sign XML in SAT
This function using param_pacs parameter try to sign XML in SAT
...
...
@@ -705,7 +707,8 @@ class IrAttachmentFacturaeMx(models.Model):
self
.
file_xml_sign
.
index_content
,
attrib
,
element
=
element
)
def
parse_data
(
self
,
data
,
attrib
,
element
=
"*"
,
namespaces
=
None
):
@
classmethod
def
parse_data
(
cls
,
data
,
attrib
,
element
=
"*"
,
namespaces
=
None
):
"""Return value for given attribute
This function looks for an attribute named as attrib parameter into
...
...
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