Skip to content

Commit

Permalink
[MIG] l10n_do_ncf_validation: Migracion v16
Browse files Browse the repository at this point in the history
  • Loading branch information
jorge-pcg committed Mar 27, 2024
1 parent 866d920 commit 4ce6c08
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 29 deletions.
2 changes: 1 addition & 1 deletion l10n_do_ncf_validation/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"data/ir_config_parameter_data.xml",
"views/res_config_settings_views.xml",
],
"installable": False,
"installable": True,
}
39 changes: 12 additions & 27 deletions l10n_do_ncf_validation/i18n/es_DO.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0+e\n"
"Project-Id-Version: Odoo Server 16.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-03-18 17:26+0000\n"
"PO-Revision-Date: 2021-03-18 13:29-0400\n"
"POT-Creation-Date: 2024-03-27 13:55+0000\n"
"PO-Revision-Date: 2024-03-27 09:56-0400\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: \n"
"Language: es\n"
"X-Generator: Poedit 2.4.2\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.4.2\n"

#. module: l10n_do_ncf_validation
#: model:ir.model.fields,help:l10n_do_ncf_validation.field_res_company__ncf_validation_target
Expand All @@ -30,12 +30,14 @@ msgstr ""
"-Ambos: valida ambos casos."

#. module: l10n_do_ncf_validation
#. odoo-python
#: code:addons/l10n_do_ncf_validation/models/account_move.py:0
#, python-format
msgid "A valid RNC/Cédula is required to request a NCF validation."
msgstr "Se requiere un RNC/Cédula válido para solicitar una validación NCF."

#. module: l10n_do_ncf_validation
#. odoo-python
#: code:addons/l10n_do_ncf_validation/models/account_move.py:0
#, python-format
msgid "Cannot validate Fiscal Invoice because %s is not a valid NCF"
Expand All @@ -52,6 +54,7 @@ msgid "Config Settings"
msgstr "Opciones de configuración"

#. module: l10n_do_ncf_validation
#. odoo-python
#: code:addons/l10n_do_ncf_validation/models/account_move.py:0
#, python-format
msgid ""
Expand All @@ -62,13 +65,7 @@ msgstr ""
"Vuelve a intentarlo más tarde."

#. module: l10n_do_ncf_validation
#: model:ir.model.fields,field_description:l10n_do_ncf_validation.field_account_move__display_name
#: model:ir.model.fields,field_description:l10n_do_ncf_validation.field_res_company__display_name
#: model:ir.model.fields,field_description:l10n_do_ncf_validation.field_res_config_settings__display_name
msgid "Display Name"
msgstr "Nombre mostrado"

#. module: l10n_do_ncf_validation
#. odoo-python
#: code:addons/l10n_do_ncf_validation/models/account_move.py:0
#, python-format
msgid "ECF Security Code must be a 6 character length alphanumeric"
Expand All @@ -81,13 +78,6 @@ msgstr ""
msgid "External"
msgstr "Externo"

#. module: l10n_do_ncf_validation
#: model:ir.model.fields,field_description:l10n_do_ncf_validation.field_account_move__id
#: model:ir.model.fields,field_description:l10n_do_ncf_validation.field_res_company__id
#: model:ir.model.fields,field_description:l10n_do_ncf_validation.field_res_config_settings__id
msgid "ID"
msgstr "ID (identificación)"

#. module: l10n_do_ncf_validation
#: model:ir.model.fields.selection,name:l10n_do_ncf_validation.selection__res_company__ncf_validation_target__internal
msgid "Internal"
Expand All @@ -113,13 +103,7 @@ msgstr ""
"impresas ECF emitidas estén estandarizadas"

#. module: l10n_do_ncf_validation
#: model:ir.model.fields,field_description:l10n_do_ncf_validation.field_account_move____last_update
#: model:ir.model.fields,field_description:l10n_do_ncf_validation.field_res_company____last_update
#: model:ir.model.fields,field_description:l10n_do_ncf_validation.field_res_config_settings____last_update
msgid "Last Modified on"
msgstr "Última modificación en"

#. module: l10n_do_ncf_validation
#. odoo-python
#: code:addons/l10n_do_ncf_validation/models/account_move.py:0
#, python-format
msgid "NCF %s has a invalid format. Please fix it and try again."
Expand All @@ -139,6 +123,7 @@ msgid "None"
msgstr "Ninguno"

#. module: l10n_do_ncf_validation
#. odoo-python
#: code:addons/l10n_do_ncf_validation/models/account_move.py:0
#, python-format
msgid "Odoo couldn't authenticate with external service."
Expand Down
2 changes: 1 addition & 1 deletion l10n_do_ncf_validation/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def check_rnc_format(vat):
check_rnc_format(rnc)

ncf = self.l10n_do_fiscal_number
if not ncf or len(ncf) not in (11, 13) or ncf[0] not in ("B", "E"):
if (not ncf) or(len(ncf) not in (11, 13)) or (ncf[0] not in ("B", "E")):

Check failure on line 32 in l10n_do_ncf_validation/models/account_move.py

View workflow job for this annotation

GitHub Actions / flake8

missing whitespace around operator

Check failure on line 32 in l10n_do_ncf_validation/models/account_move.py

View workflow job for this annotation

GitHub Actions / flake8

missing whitespace around operator
raise ValidationError(
_("NCF %s has a invalid format. Please fix it and try again." % ncf)
)
Expand Down

0 comments on commit 4ce6c08

Please sign in to comment.