diff --git a/web_footer_gdpr_report/README.rst b/web_footer_gdpr_report/README.rst new file mode 100644 index 0000000..2ba995a --- /dev/null +++ b/web_footer_gdpr_report/README.rst @@ -0,0 +1,74 @@ +====================== +Web Footer GDPR Report +====================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fslv--web-lightgray.png?logo=github + :target: https://github.com/OCA/slv-web/tree/15.0/web_footer_gdpr_report + :alt: OCA/slv-web +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/slv-web-15-0/slv-web-15-0-web_footer_gdpr_report + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/slv-web&target_branch=15.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Adds footer GDPR report in layout web + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Solvos + +Contributors +~~~~~~~~~~~~ + +* Lucia Pinheiro +* David Alonso + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +This module is part of the `OCA/slv-web `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/web_footer_gdpr_report/__init__.py b/web_footer_gdpr_report/__init__.py new file mode 100644 index 0000000..9a7e03e --- /dev/null +++ b/web_footer_gdpr_report/__init__.py @@ -0,0 +1 @@ +from . import models \ No newline at end of file diff --git a/web_footer_gdpr_report/__manifest__.py b/web_footer_gdpr_report/__manifest__.py new file mode 100644 index 0000000..0f063cb --- /dev/null +++ b/web_footer_gdpr_report/__manifest__.py @@ -0,0 +1,21 @@ +# © 2022 Solvos Consultoría Informática () +# License LGPL-3 - See http://www.gnu.org/licenses/lgpl-3.0.html +{ + "name": "Web Footer GDPR Report", + "summary": """ + Adds footer GDPR report in layout web + """, + "author": "Solvos", + "license": "LGPL-3", + "version": "15.0.1.0.0", + "category": "Sales/Sales", + "website": "https://github.com/solvosci/slv-sale", + "depends": [ + "sale","web" + ], + "data": [ + "views/res_config_settings_views.xml", + "report/web_footer_gdpr_report.xml" + ], + 'installable': True, +} diff --git a/web_footer_gdpr_report/i18n/es.po b/web_footer_gdpr_report/i18n/es.po new file mode 100644 index 0000000..4245fd1 --- /dev/null +++ b/web_footer_gdpr_report/i18n/es.po @@ -0,0 +1,100 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * web_footer_gdpr_report +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-12-29 12:02+0100\n" +"PO-Revision-Date: 2022-12-29 12:07+0100\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: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 3.1.1\n" + +#. module: web_footer_gdpr_report +#: model_terms:ir.ui.view,arch_db:web_footer_gdpr_report.footer_gdpr_invoice_config_settings_view +msgid "Add GDPR in invoice footer" +msgstr "Añadir Cláusulas RGPD en el pie de página de factura" + +#. module: web_footer_gdpr_report +#: model_terms:ir.ui.view,arch_db:web_footer_gdpr_report.footer_gdpr_order_config_settings_view +msgid "Add GDPR in order footer" +msgstr "Añadir Cláusulas RGPD en el pie de página de pedido" + +#. module: web_footer_gdpr_report +#: model:ir.model.fields,field_description:web_footer_gdpr_report.field_res_company__add_gdpr_invoice +msgid "Add Gdpr Invoice" +msgstr "Añadir Cláusulas RGPD en factura" + +#. module: web_footer_gdpr_report +#: model:ir.model.fields,field_description:web_footer_gdpr_report.field_res_company__add_gdpr_order +msgid "Add Gdpr Order" +msgstr "Añadir Cláusulas RGPD en Pedido" + +#. module: web_footer_gdpr_report +#: model:ir.model,name:web_footer_gdpr_report.model_res_company +msgid "Companies" +msgstr "Compania" + +#. module: web_footer_gdpr_report +#: model:ir.model,name:web_footer_gdpr_report.model_res_config_settings +msgid "Config Settings" +msgstr "Ajustes" + +#. module: web_footer_gdpr_report +#: model_terms:ir.ui.view,arch_db:web_footer_gdpr_report.footer_gdpr_invoice_config_settings_view +#: model_terms:ir.ui.view,arch_db:web_footer_gdpr_report.footer_gdpr_order_config_settings_view +msgid "Documentation" +msgstr "Documentación" + +#. module: web_footer_gdpr_report +#: model_terms:ir.ui.view,arch_db:web_footer_gdpr_report.footer_gdpr_invoice_config_settings_view +#: model_terms:ir.ui.view,arch_db:web_footer_gdpr_report.footer_gdpr_order_config_settings_view +msgid "GDPR" +msgstr "Cláusulas RGPD" + +#. module: web_footer_gdpr_report +#: model:ir.model.fields,field_description:web_footer_gdpr_report.field_res_config_settings__add_gdpr_invoice +msgid "GDPR Invoice" +msgstr "Cláusulas RGPD en Facturas" + +#. module: web_footer_gdpr_report +#: model_terms:ir.ui.view,arch_db:web_footer_gdpr_report.footer_gdpr_invoice_config_settings_view +msgid "GDPR Invoice..." +msgstr "Cláusulas RGPD en Facturas..." + +#. module: web_footer_gdpr_report +#: model:ir.model.fields,field_description:web_footer_gdpr_report.field_res_config_settings__add_gdpr_order +msgid "GDPR Order" +msgstr "Cláusulas RGPD en Pedido" + +#. module: web_footer_gdpr_report +#: model_terms:ir.ui.view,arch_db:web_footer_gdpr_report.footer_gdpr_order_config_settings_view +msgid "GDPR Order..." +msgstr "Cláusulas RGPD en Pedido..." + +#. module: web_footer_gdpr_report +#: model_terms:ir.ui.view,arch_db:web_footer_gdpr_report.report_invoice_document +msgid "add_gdpr_invoice" +msgstr "" + +#. module: web_footer_gdpr_report +#: model_terms:ir.ui.view,arch_db:web_footer_gdpr_report.report_saleorder_document +msgid "add_gdpr_order" +msgstr "" + +#. module: web_footer_gdpr_report +#: model_terms:ir.ui.view,arch_db:web_footer_gdpr_report.report_invoice_document +msgid "invoice" +msgstr "facturas" + +#. module: web_footer_gdpr_report +#: model_terms:ir.ui.view,arch_db:web_footer_gdpr_report.report_saleorder_document +msgid "order" +msgstr "pedidos" diff --git a/web_footer_gdpr_report/i18n/web_footer_gdpr_report.pot b/web_footer_gdpr_report/i18n/web_footer_gdpr_report.pot new file mode 100644 index 0000000..85a146d --- /dev/null +++ b/web_footer_gdpr_report/i18n/web_footer_gdpr_report.pot @@ -0,0 +1,100 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * web_footer_gdpr_report +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-12-29 12:02+0100\n" +"PO-Revision-Date: 2022-12-29 11:01+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: \n" +"X-Generator: Poedit 3.1.1\n" + +#. module: web_footer_gdpr_report +#: model_terms:ir.ui.view,arch_db:web_footer_gdpr_report.footer_gdpr_invoice_config_settings_view +msgid "Add GDPR in invoice footer" +msgstr "" + +#. module: web_footer_gdpr_report +#: model_terms:ir.ui.view,arch_db:web_footer_gdpr_report.footer_gdpr_order_config_settings_view +msgid "Add GDPR in order footer" +msgstr "" + +#. module: web_footer_gdpr_report +#: model:ir.model.fields,field_description:web_footer_gdpr_report.field_res_company__add_gdpr_invoice +msgid "Add Gdpr Invoice" +msgstr "" + +#. module: web_footer_gdpr_report +#: model:ir.model.fields,field_description:web_footer_gdpr_report.field_res_company__add_gdpr_order +msgid "Add Gdpr Order" +msgstr "" + +#. module: web_footer_gdpr_report +#: model:ir.model,name:web_footer_gdpr_report.model_res_company +msgid "Companies" +msgstr "" + +#. module: web_footer_gdpr_report +#: model:ir.model,name:web_footer_gdpr_report.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: web_footer_gdpr_report +#: model_terms:ir.ui.view,arch_db:web_footer_gdpr_report.footer_gdpr_invoice_config_settings_view +#: model_terms:ir.ui.view,arch_db:web_footer_gdpr_report.footer_gdpr_order_config_settings_view +msgid "Documentation" +msgstr "" + +#. module: web_footer_gdpr_report +#: model_terms:ir.ui.view,arch_db:web_footer_gdpr_report.footer_gdpr_invoice_config_settings_view +#: model_terms:ir.ui.view,arch_db:web_footer_gdpr_report.footer_gdpr_order_config_settings_view +msgid "GDPR" +msgstr "" + +#. module: web_footer_gdpr_report +#: model:ir.model.fields,field_description:web_footer_gdpr_report.field_res_config_settings__add_gdpr_invoice +msgid "GDPR Invoice" +msgstr "" + +#. module: web_footer_gdpr_report +#: model_terms:ir.ui.view,arch_db:web_footer_gdpr_report.footer_gdpr_invoice_config_settings_view +msgid "GDPR Invoice..." +msgstr "" + +#. module: web_footer_gdpr_report +#: model:ir.model.fields,field_description:web_footer_gdpr_report.field_res_config_settings__add_gdpr_order +msgid "GDPR Order" +msgstr "" + +#. module: web_footer_gdpr_report +#: model_terms:ir.ui.view,arch_db:web_footer_gdpr_report.footer_gdpr_order_config_settings_view +msgid "GDPR Order..." +msgstr "" + +#. module: web_footer_gdpr_report +#: model_terms:ir.ui.view,arch_db:web_footer_gdpr_report.report_invoice_document +msgid "add_gdpr_invoice" +msgstr "" + +#. module: web_footer_gdpr_report +#: model_terms:ir.ui.view,arch_db:web_footer_gdpr_report.report_saleorder_document +msgid "add_gdpr_order" +msgstr "" + +#. module: web_footer_gdpr_report +#: model_terms:ir.ui.view,arch_db:web_footer_gdpr_report.report_invoice_document +msgid "invoice" +msgstr "" + +#. module: web_footer_gdpr_report +#: model_terms:ir.ui.view,arch_db:web_footer_gdpr_report.report_saleorder_document +msgid "order" +msgstr "" diff --git a/web_footer_gdpr_report/models/__init__.py b/web_footer_gdpr_report/models/__init__.py new file mode 100644 index 0000000..9e6feca --- /dev/null +++ b/web_footer_gdpr_report/models/__init__.py @@ -0,0 +1,2 @@ +from . import res_company +from . import res_config_settings \ No newline at end of file diff --git a/web_footer_gdpr_report/models/res_company.py b/web_footer_gdpr_report/models/res_company.py new file mode 100644 index 0000000..fb1247c --- /dev/null +++ b/web_footer_gdpr_report/models/res_company.py @@ -0,0 +1,11 @@ +# © 2022 Solvos Consultoría Informática () +# License LGPL-3.0 (https://www.gnu.org/licenses/lgpl-3.0.html) + +from odoo import models, fields + + +class ResCompany(models.Model): + _inherit = "res.company" + + add_gdpr_order = fields.Html() + add_gdpr_invoice = fields.Html() diff --git a/web_footer_gdpr_report/models/res_config_settings.py b/web_footer_gdpr_report/models/res_config_settings.py new file mode 100644 index 0000000..cbcdf73 --- /dev/null +++ b/web_footer_gdpr_report/models/res_config_settings.py @@ -0,0 +1,20 @@ +# © 2022 Solvos Consultoría Informática () +# License LGPL-3.0 (https://www.gnu.org/licenses/lgpl-3.0.html) + +from odoo import models, fields + + +class ResConfigSettings(models.TransientModel): + _inherit = "res.config.settings" + + add_gdpr_order = fields.Html( + related='company_id.add_gdpr_order', + string='GDPR Order', + readonly=False, + ) + add_gdpr_invoice = fields.Html( + related='company_id.add_gdpr_invoice', + string='GDPR Invoice', + readonly=False, + ) + diff --git a/web_footer_gdpr_report/readme/CONTRIBUTORS.rst b/web_footer_gdpr_report/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000..8204b4e --- /dev/null +++ b/web_footer_gdpr_report/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Lucia Pinheiro +* David Alonso \ No newline at end of file diff --git a/web_footer_gdpr_report/readme/DESCRIPTION.rst b/web_footer_gdpr_report/readme/DESCRIPTION.rst new file mode 100644 index 0000000..a6b98bb --- /dev/null +++ b/web_footer_gdpr_report/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +Adds footer GDPR report in layout web diff --git a/web_footer_gdpr_report/report/web_footer_gdpr_report.xml b/web_footer_gdpr_report/report/web_footer_gdpr_report.xml new file mode 100644 index 0000000..1ec37ea --- /dev/null +++ b/web_footer_gdpr_report/report/web_footer_gdpr_report.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + diff --git a/web_footer_gdpr_report/static/description/icon.png b/web_footer_gdpr_report/static/description/icon.png new file mode 100644 index 0000000..daa2a02 Binary files /dev/null and b/web_footer_gdpr_report/static/description/icon.png differ diff --git a/web_footer_gdpr_report/static/description/index.html b/web_footer_gdpr_report/static/description/index.html new file mode 100644 index 0000000..48ce985 --- /dev/null +++ b/web_footer_gdpr_report/static/description/index.html @@ -0,0 +1,420 @@ + + + + + + +Web Footer GDPR Report + + + + + + diff --git a/web_footer_gdpr_report/views/res_config_settings_views.xml b/web_footer_gdpr_report/views/res_config_settings_views.xml new file mode 100644 index 0000000..0306d57 --- /dev/null +++ b/web_footer_gdpr_report/views/res_config_settings_views.xml @@ -0,0 +1,57 @@ + + + + + + + res.config.settings.form (Web Footer GDPR Order) + res.config.settings + + + + + + + + + + res.config.settings.form (Web Footer GDPR Invoice) + res.config.settings + + + + + + + + + +