diff --git a/l10n_mx_res_partner_csf_regime/__manifest__.py b/l10n_mx_res_partner_csf_regime/__manifest__.py index 9b43fd9d2..586e03c45 100644 --- a/l10n_mx_res_partner_csf_regime/__manifest__.py +++ b/l10n_mx_res_partner_csf_regime/__manifest__.py @@ -14,7 +14,7 @@ "l10n_mx_res_partner_csf", ], "external_dependencies": { - "python": ["pdfminer", "pdfminer.six==20220319"], + "python": ["pdfminer.six==20220319"], }, "application": False, "maintainers": ["ursais"], diff --git a/l10n_mx_res_partner_csf_regime/wizard/import_csf.py b/l10n_mx_res_partner_csf_regime/wizard/import_csf.py index 96f1121c7..c8d0e6f15 100644 --- a/l10n_mx_res_partner_csf_regime/wizard/import_csf.py +++ b/l10n_mx_res_partner_csf_regime/wizard/import_csf.py @@ -1,14 +1,5 @@ -import logging - from odoo import models -_logger = logging.getLogger(__name__) - -try: - pass -except ImportError as err: - _logger.debug(err) - FISCAL_REGIMES_MAPPING = { "Régimen General de Ley Personas Morales": "601", "Régimen de Sueldos y Salarios e Ingresos Asimilados a Salarios": "605", @@ -36,8 +27,9 @@ def prepare_res_partner_values(self, text): if fiscal_regime == "Régimen": fiscal_regime = split_data[index + 3].strip() fiscal_regime = FISCAL_REGIMES_MAPPING[fiscal_regime] - return vals.update( + vals.update( { "l10n_mx_edi_fiscal_regime": fiscal_regime, } ) + return vals diff --git a/requirements.txt b/requirements.txt index d2a14183d..95a6776bb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,2 @@ # generated from manifests external_dependencies -pdfminer pdfminer.six==20220319