diff --git a/l10n_do_ncf_validation/__manifest__.py b/l10n_do_ncf_validation/__manifest__.py index 9f02f8a..6e7866e 100644 --- a/l10n_do_ncf_validation/__manifest__.py +++ b/l10n_do_ncf_validation/__manifest__.py @@ -11,5 +11,5 @@ "data/ir_config_parameter_data.xml", "views/res_config_settings_views.xml", ], - "installable": False, + "installable": True, } diff --git a/l10n_do_ncf_validation/i18n/es_DO.po b/l10n_do_ncf_validation/i18n/es_DO.po index a1dd2b9..f2b0f6c 100644 --- a/l10n_do_ncf_validation/i18n/es_DO.po +++ b/l10n_do_ncf_validation/i18n/es_DO.po @@ -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 @@ -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" @@ -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 "" @@ -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" @@ -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" @@ -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." @@ -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." diff --git a/l10n_do_ncf_validation/models/account_move.py b/l10n_do_ncf_validation/models/account_move.py index 1f091d2..7d0b06c 100644 --- a/l10n_do_ncf_validation/models/account_move.py +++ b/l10n_do_ncf_validation/models/account_move.py @@ -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")): raise ValidationError( _("NCF %s has a invalid format. Please fix it and try again." % ncf) )