From a398160324a025fe951aeffcecd65fba9cf2d427 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Fernando=20Izquierdo=20Hern=C3=A1ndez?= <ferskateboard@gmail.com> Date: Wed, 8 Dec 2021 11:41:41 -0600 Subject: [PATCH 1/2] fix(pacs.finkok): se especifica el mensaje de error Se modifica el mensaje de error para las funciones sign_cfdi_finkok, cancel_cfdi_finkok y consult_cfdi_finkok. --- l10n_mx_params_pac/pacs/finfok.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/l10n_mx_params_pac/pacs/finfok.py b/l10n_mx_params_pac/pacs/finfok.py index 67ca20f6..273b487e 100644 --- a/l10n_mx_params_pac/pacs/finfok.py +++ b/l10n_mx_params_pac/pacs/finfok.py @@ -27,7 +27,7 @@ _cancel_errors = { "205": "UUID No existe", "704": "Error con la contraseña de la llave Privada", "708": "No se pudo conectar al SAT", - "'711": "Error con el certificado al cancelar", + "711": "Error con el certificado al cancelar", "712": "El número de noCertificado es diferente al del número de" "certificado del atributo certificado", } @@ -137,7 +137,8 @@ class ParamsPac(models.Model): except KeyError: raise UserError( _("Something went wrong when parsing Pac answer" - "\n Review your Pac configuration, if the problem persists " + "\n Probably the URL of the webservice has http instead of https" + "\n Review you Pac configuration, if the problem persists " "touch base with your administrator "), ) # If res is false then something went wrong @@ -202,7 +203,8 @@ class ParamsPac(models.Model): except KeyError: raise UserError( _("Something went wrong when parsing Pac answer" - "\n Review your Pac configuration, if the problem persists " + "\n Probably the URL of the webservice has http instead of https" + "\n Review you Pac configuration, if the problem persists " "touch base with your administrator "), ) # Raise errors @@ -236,6 +238,7 @@ class ParamsPac(models.Model): except KeyError: raise UserError( _("Something went wrong when parsing Pac answer" + "\n Probably the URL of the webservice has http instead of https" "\n Review you Pac configuration, if the problem persists " "touch base with your administrator "), ) -- GitLab From 04c1bf775448ee1d8d497dc246ade1444a581a32 Mon Sep 17 00:00:00 2001 From: agb80 <atin81@gmail.com> Date: Tue, 21 Dec 2021 14:25:23 -0600 Subject: [PATCH 2/2] style(flake): green --- l10n_mx_ir_attachment_facturae/models/base_cfdi_mixin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l10n_mx_ir_attachment_facturae/models/base_cfdi_mixin.py b/l10n_mx_ir_attachment_facturae/models/base_cfdi_mixin.py index 3aca0ee4..d382714e 100644 --- a/l10n_mx_ir_attachment_facturae/models/base_cfdi_mixin.py +++ b/l10n_mx_ir_attachment_facturae/models/base_cfdi_mixin.py @@ -154,7 +154,7 @@ class BaseCfdi(models.AbstractModel): # uuid assigned for given XML in case there were a communication issue on # our side. self.cfdi_id.action_validate() - + # In case cfdi is not signed yet try recreating xml if self.cfdi_id.state not in ("signed", "done"): self.cfdi_datetime = fields.Datetime.now() -- GitLab