From c49a4a0da1ce612bcb79e3912b858b5e01bf82a7 Mon Sep 17 00:00:00 2001 From: Carolina Fernandez Date: Mon, 12 Feb 2024 12:07:39 +0100 Subject: [PATCH] [15.0][IMP] l10n_es_facturae: Change facturae to commercial field TT47656 --- l10n_es_facturae/README.rst | 3 +- l10n_es_facturae/__manifest__.py | 2 +- l10n_es_facturae/i18n/bg.po | 18 +++++++++ l10n_es_facturae/i18n/ca.po | 18 +++++++++ l10n_es_facturae/i18n/cs.po | 18 +++++++++ l10n_es_facturae/i18n/de.po | 18 +++++++++ l10n_es_facturae/i18n/es.po | 18 +++++++++ l10n_es_facturae/i18n/es_CO.po | 18 +++++++++ l10n_es_facturae/i18n/es_CR.po | 18 +++++++++ l10n_es_facturae/i18n/eu.po | 18 +++++++++ l10n_es_facturae/i18n/fr.po | 18 +++++++++ l10n_es_facturae/i18n/gl.po | 18 +++++++++ l10n_es_facturae/i18n/hr.po | 18 +++++++++ l10n_es_facturae/i18n/l10n_es_facturae.pot | 18 +++++++++ l10n_es_facturae/i18n/nl.po | 18 +++++++++ l10n_es_facturae/i18n/pl.po | 18 +++++++++ l10n_es_facturae/i18n/pt.po | 18 +++++++++ l10n_es_facturae/i18n/pt_BR.po | 18 +++++++++ l10n_es_facturae/i18n/ru.po | 18 +++++++++ l10n_es_facturae/i18n/sl.po | 18 +++++++++ l10n_es_facturae/i18n/sv.po | 18 +++++++++ l10n_es_facturae/i18n/tr.po | 18 +++++++++ l10n_es_facturae/i18n/vi.po | 18 +++++++++ .../migrations/15.0.1.10.0/pre-migration.py | 15 ++++++++ l10n_es_facturae/models/account_move.py | 7 ++++ l10n_es_facturae/models/res_partner.py | 5 +++ l10n_es_facturae/readme/CONTRIBUTORS.rst | 1 + .../static/description/index.html | 3 +- l10n_es_facturae/tests/common.py | 37 +++++++++++++++++++ l10n_es_facturae/views/res_partner_view.xml | 20 ++++------ 30 files changed, 455 insertions(+), 16 deletions(-) create mode 100644 l10n_es_facturae/migrations/15.0.1.10.0/pre-migration.py diff --git a/l10n_es_facturae/README.rst b/l10n_es_facturae/README.rst index f6435fd751b..0ac6fd66d91 100644 --- a/l10n_es_facturae/README.rst +++ b/l10n_es_facturae/README.rst @@ -7,7 +7,7 @@ Creación de Facturae !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:64caf2dad5b4f4a526db6b82f45af5932f7e732d1889b1bdcda3060875f8ee12 + !! source digest: sha256:4be8141debc970a03ec4d3c9c2c3c9b625f53585fd4cc2c185a0f63a5393592e !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png @@ -160,6 +160,7 @@ Contributors * Enric Tobella * Adrián Gómez * Eduardo de Miguel (edu@moduon.team) +* Carolina Fernandez (http://www.tecnativa.com) Maintainers ~~~~~~~~~~~ diff --git a/l10n_es_facturae/__manifest__.py b/l10n_es_facturae/__manifest__.py index 158bdc2b77c..85f1a2276cf 100644 --- a/l10n_es_facturae/__manifest__.py +++ b/l10n_es_facturae/__manifest__.py @@ -8,7 +8,7 @@ { "name": "Creación de Facturae", - "version": "15.0.1.9.0", + "version": "15.0.1.10.0", "author": "ASR-OSS, " "FactorLibre, " "Tecon, " diff --git a/l10n_es_facturae/i18n/bg.po b/l10n_es_facturae/i18n/bg.po index 53c0a2d0bad..e46709efdeb 100644 --- a/l10n_es_facturae/i18n/bg.po +++ b/l10n_es_facturae/i18n/bg.po @@ -677,6 +677,24 @@ msgstr "" msgid "Otro" msgstr "" +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Unidad Tramitadora not provided" +msgstr "" + #. module: l10n_es_facturae #: code:addons/l10n_es_facturae/models/account_move.py:0 #, python-format diff --git a/l10n_es_facturae/i18n/ca.po b/l10n_es_facturae/i18n/ca.po index 8fd4372499c..5c590f7cd5a 100644 --- a/l10n_es_facturae/i18n/ca.po +++ b/l10n_es_facturae/i18n/ca.po @@ -686,6 +686,24 @@ msgstr "" msgid "Otro" msgstr "Altre" +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Unidad Tramitadora not provided" +msgstr "" + #. module: l10n_es_facturae #: code:addons/l10n_es_facturae/models/account_move.py:0 #, python-format diff --git a/l10n_es_facturae/i18n/cs.po b/l10n_es_facturae/i18n/cs.po index 197ff8bfa1c..9eb37ccf33a 100644 --- a/l10n_es_facturae/i18n/cs.po +++ b/l10n_es_facturae/i18n/cs.po @@ -677,6 +677,24 @@ msgstr "" msgid "Otro" msgstr "" +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Unidad Tramitadora not provided" +msgstr "" + #. module: l10n_es_facturae #: code:addons/l10n_es_facturae/models/account_move.py:0 #, python-format diff --git a/l10n_es_facturae/i18n/de.po b/l10n_es_facturae/i18n/de.po index 5f907d193c0..ee1d4d60e91 100644 --- a/l10n_es_facturae/i18n/de.po +++ b/l10n_es_facturae/i18n/de.po @@ -677,6 +677,24 @@ msgstr "" msgid "Otro" msgstr "" +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Unidad Tramitadora not provided" +msgstr "" + #. module: l10n_es_facturae #: code:addons/l10n_es_facturae/models/account_move.py:0 #, python-format diff --git a/l10n_es_facturae/i18n/es.po b/l10n_es_facturae/i18n/es.po index 6cd907963d6..d88bcdb39d1 100644 --- a/l10n_es_facturae/i18n/es.po +++ b/l10n_es_facturae/i18n/es.po @@ -705,6 +705,24 @@ msgstr "Órgano Gestor" msgid "Otro" msgstr "Otro" +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Oficina Contable not provided" +msgstr "La Oficina Contable es obligatorio" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Organo Gestor not provided" +msgstr "El Organo Gestor es obligatorio" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Unidad Tramitadora not provided" +msgstr "La Unidad Tramitadora es obligatorio" + #. module: l10n_es_facturae #: code:addons/l10n_es_facturae/models/account_move.py:0 #, python-format diff --git a/l10n_es_facturae/i18n/es_CO.po b/l10n_es_facturae/i18n/es_CO.po index 1d556889577..1b26e73919d 100644 --- a/l10n_es_facturae/i18n/es_CO.po +++ b/l10n_es_facturae/i18n/es_CO.po @@ -678,6 +678,24 @@ msgstr "" msgid "Otro" msgstr "" +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Oficina Contable not provided" +msgstr "La Oficina Contable es obligatorio" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Organo Gestor not provided" +msgstr "El Organo Gestor es obligatorio" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Unidad Tramitadora not provided" +msgstr "La Unidad Tramitadora es obligatorio" + #. module: l10n_es_facturae #: code:addons/l10n_es_facturae/models/account_move.py:0 #, python-format diff --git a/l10n_es_facturae/i18n/es_CR.po b/l10n_es_facturae/i18n/es_CR.po index 19a61baeefa..7968da59993 100644 --- a/l10n_es_facturae/i18n/es_CR.po +++ b/l10n_es_facturae/i18n/es_CR.po @@ -678,6 +678,24 @@ msgstr "" msgid "Otro" msgstr "" +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Oficina Contable not provided" +msgstr "La Oficina Contable es obligatorio" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Organo Gestor not provided" +msgstr "El Organo Gestor es obligatorio" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Unidad Tramitadora not provided" +msgstr "La Unidad Tramitadora es obligatorio" + #. module: l10n_es_facturae #: code:addons/l10n_es_facturae/models/account_move.py:0 #, python-format diff --git a/l10n_es_facturae/i18n/eu.po b/l10n_es_facturae/i18n/eu.po index 9762f3d7fde..587c1a90e91 100644 --- a/l10n_es_facturae/i18n/eu.po +++ b/l10n_es_facturae/i18n/eu.po @@ -677,6 +677,24 @@ msgstr "" msgid "Otro" msgstr "" +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Unidad Tramitadora not provided" +msgstr "" + #. module: l10n_es_facturae #: code:addons/l10n_es_facturae/models/account_move.py:0 #, python-format diff --git a/l10n_es_facturae/i18n/fr.po b/l10n_es_facturae/i18n/fr.po index 10fd9f186e8..50aa85f5074 100644 --- a/l10n_es_facturae/i18n/fr.po +++ b/l10n_es_facturae/i18n/fr.po @@ -677,6 +677,24 @@ msgstr "" msgid "Otro" msgstr "" +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Unidad Tramitadora not provided" +msgstr "" + #. module: l10n_es_facturae #: code:addons/l10n_es_facturae/models/account_move.py:0 #, python-format diff --git a/l10n_es_facturae/i18n/gl.po b/l10n_es_facturae/i18n/gl.po index 04c9ff327fc..db3497734b9 100644 --- a/l10n_es_facturae/i18n/gl.po +++ b/l10n_es_facturae/i18n/gl.po @@ -679,6 +679,24 @@ msgstr "" msgid "Otro" msgstr "Outro" +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Unidad Tramitadora not provided" +msgstr "" + #. module: l10n_es_facturae #: code:addons/l10n_es_facturae/models/account_move.py:0 #, python-format diff --git a/l10n_es_facturae/i18n/hr.po b/l10n_es_facturae/i18n/hr.po index 4817a6172cf..55debbf0c40 100644 --- a/l10n_es_facturae/i18n/hr.po +++ b/l10n_es_facturae/i18n/hr.po @@ -678,6 +678,24 @@ msgstr "" msgid "Otro" msgstr "" +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Unidad Tramitadora not provided" +msgstr "" + #. module: l10n_es_facturae #: code:addons/l10n_es_facturae/models/account_move.py:0 #, python-format diff --git a/l10n_es_facturae/i18n/l10n_es_facturae.pot b/l10n_es_facturae/i18n/l10n_es_facturae.pot index 14746c6b7c8..1104f7032e1 100644 --- a/l10n_es_facturae/i18n/l10n_es_facturae.pot +++ b/l10n_es_facturae/i18n/l10n_es_facturae.pot @@ -671,6 +671,24 @@ msgstr "" msgid "Otro" msgstr "" +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Unidad Tramitadora not provided" +msgstr "" + #. module: l10n_es_facturae #: code:addons/l10n_es_facturae/models/account_move.py:0 #, python-format diff --git a/l10n_es_facturae/i18n/nl.po b/l10n_es_facturae/i18n/nl.po index 4006a2de0fd..8126985215d 100644 --- a/l10n_es_facturae/i18n/nl.po +++ b/l10n_es_facturae/i18n/nl.po @@ -677,6 +677,24 @@ msgstr "" msgid "Otro" msgstr "" +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Unidad Tramitadora not provided" +msgstr "" + #. module: l10n_es_facturae #: code:addons/l10n_es_facturae/models/account_move.py:0 #, python-format diff --git a/l10n_es_facturae/i18n/pl.po b/l10n_es_facturae/i18n/pl.po index 7f7eae56aa4..c4ee47297d9 100644 --- a/l10n_es_facturae/i18n/pl.po +++ b/l10n_es_facturae/i18n/pl.po @@ -679,6 +679,24 @@ msgstr "" msgid "Otro" msgstr "" +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Unidad Tramitadora not provided" +msgstr "" + #. module: l10n_es_facturae #: code:addons/l10n_es_facturae/models/account_move.py:0 #, python-format diff --git a/l10n_es_facturae/i18n/pt.po b/l10n_es_facturae/i18n/pt.po index fb4aef2b046..e109bdaa89c 100644 --- a/l10n_es_facturae/i18n/pt.po +++ b/l10n_es_facturae/i18n/pt.po @@ -677,6 +677,24 @@ msgstr "" msgid "Otro" msgstr "" +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Unidad Tramitadora not provided" +msgstr "" + #. module: l10n_es_facturae #: code:addons/l10n_es_facturae/models/account_move.py:0 #, python-format diff --git a/l10n_es_facturae/i18n/pt_BR.po b/l10n_es_facturae/i18n/pt_BR.po index 0208a6a3969..ed0073047de 100644 --- a/l10n_es_facturae/i18n/pt_BR.po +++ b/l10n_es_facturae/i18n/pt_BR.po @@ -678,6 +678,24 @@ msgstr "" msgid "Otro" msgstr "" +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Unidad Tramitadora not provided" +msgstr "" + #. module: l10n_es_facturae #: code:addons/l10n_es_facturae/models/account_move.py:0 #, python-format diff --git a/l10n_es_facturae/i18n/ru.po b/l10n_es_facturae/i18n/ru.po index 272bf96f22b..9300be7680e 100644 --- a/l10n_es_facturae/i18n/ru.po +++ b/l10n_es_facturae/i18n/ru.po @@ -679,6 +679,24 @@ msgstr "" msgid "Otro" msgstr "" +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Unidad Tramitadora not provided" +msgstr "" + #. module: l10n_es_facturae #: code:addons/l10n_es_facturae/models/account_move.py:0 #, python-format diff --git a/l10n_es_facturae/i18n/sl.po b/l10n_es_facturae/i18n/sl.po index eeeaba68e12..eb403acaf74 100644 --- a/l10n_es_facturae/i18n/sl.po +++ b/l10n_es_facturae/i18n/sl.po @@ -678,6 +678,24 @@ msgstr "" msgid "Otro" msgstr "" +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Unidad Tramitadora not provided" +msgstr "" + #. module: l10n_es_facturae #: code:addons/l10n_es_facturae/models/account_move.py:0 #, python-format diff --git a/l10n_es_facturae/i18n/sv.po b/l10n_es_facturae/i18n/sv.po index 8e4be01d5fa..7f56a553816 100644 --- a/l10n_es_facturae/i18n/sv.po +++ b/l10n_es_facturae/i18n/sv.po @@ -677,6 +677,24 @@ msgstr "" msgid "Otro" msgstr "" +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Unidad Tramitadora not provided" +msgstr "" + #. module: l10n_es_facturae #: code:addons/l10n_es_facturae/models/account_move.py:0 #, python-format diff --git a/l10n_es_facturae/i18n/tr.po b/l10n_es_facturae/i18n/tr.po index 2024d40dd23..7697d2731d7 100644 --- a/l10n_es_facturae/i18n/tr.po +++ b/l10n_es_facturae/i18n/tr.po @@ -677,6 +677,24 @@ msgstr "" msgid "Otro" msgstr "" +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Unidad Tramitadora not provided" +msgstr "" + #. module: l10n_es_facturae #: code:addons/l10n_es_facturae/models/account_move.py:0 #, python-format diff --git a/l10n_es_facturae/i18n/vi.po b/l10n_es_facturae/i18n/vi.po index dfe6622a473..e408ccd98bb 100644 --- a/l10n_es_facturae/i18n/vi.po +++ b/l10n_es_facturae/i18n/vi.po @@ -677,6 +677,24 @@ msgstr "" msgid "Otro" msgstr "" +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Unidad Tramitadora not provided" +msgstr "" + #. module: l10n_es_facturae #: code:addons/l10n_es_facturae/models/account_move.py:0 #, python-format diff --git a/l10n_es_facturae/migrations/15.0.1.10.0/pre-migration.py b/l10n_es_facturae/migrations/15.0.1.10.0/pre-migration.py new file mode 100644 index 00000000000..1141307f4a5 --- /dev/null +++ b/l10n_es_facturae/migrations/15.0.1.10.0/pre-migration.py @@ -0,0 +1,15 @@ +# Copyright 2024 Tecnativa - Carolina Fernandez +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + + +def migrate(env): + env.cr.execute( + """ + UPDATE res_partner child + SET facturae = parent.facturae + FROM res_partner parent + WHERE child.parent_id IS NOT NULL + AND child.facturae != parent.facturae + AND child.parent_id = parent.id + """ + ) diff --git a/l10n_es_facturae/models/account_move.py b/l10n_es_facturae/models/account_move.py index 86e0962ab80..b802469ba5a 100644 --- a/l10n_es_facturae/models/account_move.py +++ b/l10n_es_facturae/models/account_move.py @@ -1,4 +1,5 @@ # Copyright 2017 Creu Blanca +# Copyright 2024 Tecnativa - Carolina Fernandez # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). import base64 @@ -147,6 +148,12 @@ def validate_facturae_fields(self): raise ValidationError(_("Partner vat is too small")) if not self.partner_id.state_id: raise ValidationError(_("Partner state not provided")) + if not self.partner_id.organo_gestor: + raise ValidationError(_("Organo Gestor not provided")) + if not self.partner_id.unidad_tramitadora: + raise ValidationError(_("Unidad Tramitadora not provided")) + if not self.partner_id.oficina_contable: + raise ValidationError(_("Oficina Contable not provided")) if not self.payment_mode_id: raise ValidationError(_("Payment mode is required")) if self.payment_mode_id.facturae_code: diff --git a/l10n_es_facturae/models/res_partner.py b/l10n_es_facturae/models/res_partner.py index 7f2d3b1a93f..59f425c3362 100644 --- a/l10n_es_facturae/models/res_partner.py +++ b/l10n_es_facturae/models/res_partner.py @@ -1,6 +1,7 @@ # Copyright 2015 Omar Castiñeira (Comunitea) # Copyright 2017 Creu Blanca # Copyright 2023 QubiQ - Jan Tugores (jan.tugores@qubiq.es) +# Copyright 2024 Tecnativa - Carolina Fernandez # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import _, api, fields, models @@ -51,3 +52,7 @@ def check_facturae(self): raise ValidationError( _("State must be defined for factura-e enabled partners.") ) + + @api.model + def _commercial_fields(self): + return super()._commercial_fields() + ["facturae"] diff --git a/l10n_es_facturae/readme/CONTRIBUTORS.rst b/l10n_es_facturae/readme/CONTRIBUTORS.rst index 8f505d75a94..d4d78746bf9 100644 --- a/l10n_es_facturae/readme/CONTRIBUTORS.rst +++ b/l10n_es_facturae/readme/CONTRIBUTORS.rst @@ -9,3 +9,4 @@ * Enric Tobella * Adrián Gómez * Eduardo de Miguel (edu@moduon.team) +* Carolina Fernandez (http://www.tecnativa.com) diff --git a/l10n_es_facturae/static/description/index.html b/l10n_es_facturae/static/description/index.html index 185417d9b9a..f3465923f2d 100644 --- a/l10n_es_facturae/static/description/index.html +++ b/l10n_es_facturae/static/description/index.html @@ -367,7 +367,7 @@

Creación de Facturae

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:64caf2dad5b4f4a526db6b82f45af5932f7e732d1889b1bdcda3060875f8ee12 +!! source digest: sha256:4be8141debc970a03ec4d3c9c2c3c9b625f53585fd4cc2c185a0f63a5393592e !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/l10n-spain Translate me on Weblate Try me on Runboat

En virtud de la Ley 25/2013, de 27 de diciembre, de impulso de la factura @@ -508,6 +508,7 @@

Contributors

  • Enric Tobella <enric.tobella@dixmit.com>
  • Adrián Gómez <adrian.gomez@pesol.es>
  • Eduardo de Miguel (edu@moduon.team)
  • +
  • Carolina Fernandez (http://www.tecnativa.com)
  • diff --git a/l10n_es_facturae/tests/common.py b/l10n_es_facturae/tests/common.py index 6dba3aeba46..264399bfc09 100644 --- a/l10n_es_facturae/tests/common.py +++ b/l10n_es_facturae/tests/common.py @@ -734,3 +734,40 @@ def test_move_rounding_with_discount(self): def test_default_get_no_active_record(self): with self.assertRaises(exceptions.UserError): self.env["create.facturae"].create({}) + + def test_facturae_commercial_field(self): + child_partner = self.partner.copy() + child_partner.name = "Child partner" + child_partner.parent_id = self.partner.id + self.assertEqual(child_partner.facturae, self.partner.facturae) + self.partner.facturae = False + self.assertEqual(child_partner.facturae, self.partner.facturae) + + def _create_wizard_facturae_file(self): + self.move.action_post() + self._activate_certificate(self.certificate_password) + self.move.name = "2999/99999" + wizard = ( + self.env["create.facturae"] + .with_context(active_ids=self.move.ids, active_model="account.move") + .create({}) + ) + return wizard + + def test_create_facturae_file_without_organo_gestor(self): + wizard = self._create_wizard_facturae_file() + self.partner.organo_gestor = False + with self.assertRaises(exceptions.ValidationError): + wizard.create_facturae_file() + + def test_create_facturae_file_without_unidad_tramitadora(self): + wizard = self._create_wizard_facturae_file() + self.partner.unidad_tramitadora = False + with self.assertRaises(exceptions.ValidationError): + wizard.create_facturae_file() + + def test_create_facturae_file_without_oficina_contable(self): + wizard = self._create_wizard_facturae_file() + self.partner.oficina_contable = False + with self.assertRaises(exceptions.ValidationError): + wizard.create_facturae_file() diff --git a/l10n_es_facturae/views/res_partner_view.xml b/l10n_es_facturae/views/res_partner_view.xml index c07a1e1a05a..115b5223f38 100644 --- a/l10n_es_facturae/views/res_partner_view.xml +++ b/l10n_es_facturae/views/res_partner_view.xml @@ -25,7 +25,10 @@ - + - - - + + +