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..1abaead298b 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 "Partner Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner 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..f2b46c8b68d 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 "Partner Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner 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..15652c3664c 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 "Partner Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner 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..23060bccfb7 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 "Partner Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner 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..12d19ec4b76 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 "Partner 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 "Partner 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 "Partner 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..682714cd058 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 "Partner 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 "Partner 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 "Partner 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..7857370b050 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 "Partner 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 "Partner 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 "Partner 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..02690912e31 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 "Partner Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner 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..0d225d45051 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 "Partner Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner 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..6b758234339 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 "Partner Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner 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..c52dcf5876a 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 "Partner Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner 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..87198f579f2 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 "Partner Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner 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..297f7c6efda 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 "Partner Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner 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..51d1923aa80 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 "Partner Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner 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..4bf93f64042 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 "Partner Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner 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..7247eb6d133 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 "Partner Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner 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..b5eabdaad32 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 "Partner Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner 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..517966261a0 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 "Partner Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner 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..827902c5ad2 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 "Partner Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner 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..458114149ef 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 "Partner Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner 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..2c7c63ce246 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 "Partner Oficina Contable not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner Organo Gestor not provided" +msgstr "" + +#. module: l10n_es_facturae +#: code:addons/l10n_es_facturae/models/account_move.py:0 +#, python-format +msgid "Partner 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/pre-migration.py b/l10n_es_facturae/migrations/pre-migration.py new file mode 100644 index 00000000000..f3cfbfff995 --- /dev/null +++ b/l10n_es_facturae/migrations/pre-migration.py @@ -0,0 +1,8 @@ +# Copyright 2024 Tecnativa - Carolina Fernandez +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + + +def migrate(env): + childs = env["res.partner"].search([("parent_id", "!=", False)]) + for child in childs: + child.facturae = child.parent_id.facturae diff --git a/l10n_es_facturae/models/account_move.py b/l10n_es_facturae/models/account_move.py index 86e0962ab80..9bc3fec2329 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(_("Partner Organo Gestor not provided")) + if not self.partner_id.unidad_tramitadora: + raise ValidationError(_("Partner Unidad Tramitadora not provided")) + if not self.partner_id.oficina_contable: + raise ValidationError(_("Partner 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..e61a1c2856c 100644 --- a/l10n_es_facturae/tests/common.py +++ b/l10n_es_facturae/tests/common.py @@ -734,3 +734,11 @@ 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.env["res.partner"].create( + {"name": "Child partner", "parent_id": self.partner.id} + ) + self.AssertEqual(child_partner.facturae, self.partner.facturae) + self.partner.factura = False + self.AssertEqual(child_partner.facturae, self.partner.facturae) 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 @@ - + - - - + + +