Skip to content

Commit

Permalink
[FIX] l10n_mx_res_partner_csf_regime
Browse files Browse the repository at this point in the history
  • Loading branch information
SMaciasOSI committed Oct 5, 2023
1 parent 42a6270 commit f7f905f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion l10n_mx_res_partner_csf_regime/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"l10n_mx_res_partner_csf",
],
"external_dependencies": {
"python": ["pdfminer", "pdfminer.six==20220319"],
"python": ["pdfminer.six==20220319"],
},
"application": False,
"maintainers": ["ursais"],
Expand Down
12 changes: 2 additions & 10 deletions l10n_mx_res_partner_csf_regime/wizard/import_csf.py
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# generated from manifests external_dependencies
pdfminer
pdfminer.six==20220319

0 comments on commit f7f905f

Please sign in to comment.