diff --git a/l10n_es_partner_ccpae/__init__.py b/l10n_es_partner_ccpae/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/l10n_es_partner_ccpae/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/l10n_es_partner_ccpae/__manifest__.py b/l10n_es_partner_ccpae/__manifest__.py new file mode 100644 index 0000000..5be3a99 --- /dev/null +++ b/l10n_es_partner_ccpae/__manifest__.py @@ -0,0 +1,13 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +{ + "name": "Partner CCPAE", + "summary": "Añade los datos del registro de operador CCPAE a los contactos. Añade logo en los albaranes", + "version": "16.0.1.0.0", + "author": "Criptomart", + "website": "https://criptomart.net", + "category": "Localization/Europe", + "license": "AGPL-3", + "depends": ["stock"], + "data": ["views/res_partner_view.xml", "report/report_deliveryslip.xml"], + "installable": True, +} diff --git a/l10n_es_partner_ccpae/models/__init__.py b/l10n_es_partner_ccpae/models/__init__.py new file mode 100644 index 0000000..4da81fa --- /dev/null +++ b/l10n_es_partner_ccpae/models/__init__.py @@ -0,0 +1 @@ +from . import partner diff --git a/l10n_es_partner_ccpae/models/partner.py b/l10n_es_partner_ccpae/models/partner.py new file mode 100644 index 0000000..7f9e511 --- /dev/null +++ b/l10n_es_partner_ccpae/models/partner.py @@ -0,0 +1,15 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class ResPartner(models.Model): + _inherit = "res.partner" + + # Proveedores + ccpae_operador = fields.Char(string="Nº de Operador", tracking=True) + ccpae_organismo = fields.Char( + string="Organismo regulador", + default="ES-ECO-019-CT", + tracking=True, + ) diff --git a/l10n_es_partner_ccpae/report/report_deliveryslip.xml b/l10n_es_partner_ccpae/report/report_deliveryslip.xml new file mode 100644 index 0000000..b835191 --- /dev/null +++ b/l10n_es_partner_ccpae/report/report_deliveryslip.xml @@ -0,0 +1,22 @@ + + + + + + + + + Nº Operador: + Org. Regulador: + + + + + + + + + + + diff --git a/l10n_es_partner_ccpae/static/img/ccpae.png b/l10n_es_partner_ccpae/static/img/ccpae.png new file mode 100644 index 0000000..7c308b9 Binary files /dev/null and b/l10n_es_partner_ccpae/static/img/ccpae.png differ diff --git a/l10n_es_partner_ccpae/views/res_partner_view.xml b/l10n_es_partner_ccpae/views/res_partner_view.xml new file mode 100644 index 0000000..d6d6206 --- /dev/null +++ b/l10n_es_partner_ccpae/views/res_partner_view.xml @@ -0,0 +1,24 @@ + + + + + Add CCPAE data + res.partner + + + + + + + + + + + + + + +