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
dfa9cd39
Commit
dfa9cd39
authored
6 years ago
by
agb80
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style(flake8): mejora los estilos
parent
91bf4f21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
l10n_mx_params_pac/lib/finkok_envelopes.py
l10n_mx_params_pac/lib/finkok_envelopes.py
+1
-1
l10n_mx_params_pac/pacs/solucion_factible.py
l10n_mx_params_pac/pacs/solucion_factible.py
+9
-3
No files found.
l10n_mx_params_pac/lib/finkok_envelopes.py
View file @
dfa9cd39
# -*- coding: utf-8 -*-
_SOAPENV_CONSULTAR
=
"""<?xml version="1.0" encoding="UTF-8"?>
_SOAPENV_CONSULTAR
=
"""<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:can="http://facturacion.finkok.com/cancel">
<soapenv:Header/>
...
...
This diff is collapsed.
Click to expand it.
l10n_mx_params_pac/pacs/solucion_factible.py
View file @
dfa9cd39
...
...
@@ -13,6 +13,7 @@ from SOAPpy import WSDL
from
SOAPpy.Errors
import
HTTPError
,
RecursionError
,
UnderflowError
,
UnknownTypeError
from
openerp
import
api
,
fields
,
models
,
tools
from
openerp.exceptions
import
Warning
as
UserError
from
openerp.tools.translate
import
_
from
..lib
import
sf_envelopes
...
...
@@ -24,7 +25,12 @@ logger = logging.getLogger(__name__)
TIMEOUT
=
60
_ACTIONS
=
{
"timbrar"
:
""
,
"cancelar"
:
""
,
"consultar"
:
'"urn:getStatusCancelacionAsincrona"'
}
_ACTIONS
=
{
"timbrar"
:
""
,
"cancelar"
:
""
,
"consultar"
:
'"urn:getStatusCancelacionAsincrona"'
}
class
ParamsPac
(
models
.
Model
):
_inherit
=
"params.pac"
...
...
@@ -353,13 +359,13 @@ class ParamsPac(models.Model):
"ns2:consultarCfdiResponse"
][
"ns2:consultarCfdiResponse"
]
# noqa
]
logger
.
debug
(
e
)
except
Exception
as
e
:
logger
.
debug
(
e
)
raise
UserError
(
_
(
"Unknow answer.
\n
%s"
)
%
resultado
)
status_cancelacion
=
resultado
[
"ax27:status"
]
if
status_cancelacion
in
(
"211"
,
"213"
,
"204"
):
if
status_cancelacion
in
(
"211"
,
"213"
,
"204"
):
estado_cfdi
=
"Vigente"
elif
status_cancelacion
in
"200"
:
estado_cfdi
=
"Cancelado"
...
...
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