diff --git a/setup/website_sale_product_description/odoo/addons/website_sale_product_description b/setup/website_sale_product_description/odoo/addons/website_sale_product_description new file mode 120000 index 0000000..194fb2e --- /dev/null +++ b/setup/website_sale_product_description/odoo/addons/website_sale_product_description @@ -0,0 +1 @@ +../../../../website_sale_product_description \ No newline at end of file diff --git a/setup/website_sale_product_description/setup.py b/setup/website_sale_product_description/setup.py new file mode 100644 index 0000000..28c57bb --- /dev/null +++ b/setup/website_sale_product_description/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/website_sale_product_description/README.rst b/website_sale_product_description/README.rst new file mode 100644 index 0000000..625bb2d --- /dev/null +++ b/website_sale_product_description/README.rst @@ -0,0 +1,93 @@ +================================ +Website Sale Product Description +================================ + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:45de45e48656eb98671e2a85df1f5321a188198218314569be1f0ec316c7bc74 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fe--commerce-lightgray.png?logo=github + :target: https://github.com/OCA/e-commerce/tree/15.0/website_sale_product_description + :alt: OCA/e-commerce +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/e-commerce-15-0/e-commerce-15-0-website_sale_product_description + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/e-commerce&target_branch=15.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +With this addon you can edit a specific HTML description for a product. +This description will be shown within the e-Commerce product page. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +Once installed, website description is editable from product form: + +.. figure:: https://raw.githubusercontent.com/OCA/e-commerce/15.0/website_sale_product_description/static/description/product.png + :alt: Kanban view + :width: 600 px + +Then, this description will be shown within the e-Commerce product page: + +.. figure:: https://raw.githubusercontent.com/OCA/e-commerce/15.0/website_sale_product_description/static/description/website-product.png + :alt: Kanban view + :width: 600 px + +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 to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Solvos + +Contributors +~~~~~~~~~~~~ + +* David Alonso +* Mantas Šniukas + +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/e-commerce `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/website_sale_product_description/__init__.py b/website_sale_product_description/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/website_sale_product_description/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/website_sale_product_description/__manifest__.py b/website_sale_product_description/__manifest__.py new file mode 100644 index 0000000..fa63a94 --- /dev/null +++ b/website_sale_product_description/__manifest__.py @@ -0,0 +1,21 @@ +# © 2020 Solvos Consultoría Informática () +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html +{ + "name": "Website Sale Product Description", + "category": "Website", + "summary": "Shows custom e-Commerce description for products", + "version": "15.0.1.1.0", + "website": "https://github.com/OCA/e-commerce", + "author": "Solvos, Odoo Community Association (OCA)", + "license": "AGPL-3", + "application": False, + "installable": True, + "depends": ["website_sale"], + "data": [ + "views/website_sale_template.xml", + "views/product_template.xml", + ], + "demo": [ + "data/demo_website_sale_product_description.xml", + ], +} diff --git a/website_sale_product_description/data/demo_website_sale_product_description.xml b/website_sale_product_description/data/demo_website_sale_product_description.xml new file mode 100644 index 0000000..d2ea7cc --- /dev/null +++ b/website_sale_product_description/data/demo_website_sale_product_description.xml @@ -0,0 +1,11 @@ + + + + extended + description for this product, only available on e-commerce frontend. +
+ This description can include HTML markup.]]>
+
+
diff --git a/website_sale_product_description/i18n/ca.po b/website_sale_product_description/i18n/ca.po new file mode 100644 index 0000000..4922725 --- /dev/null +++ b/website_sale_product_description/i18n/ca.po @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_sale_product_description +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2021-01-20 20:44+0000\n" +"Last-Translator: claudiagn \n" +"Language-Team: none\n" +"Language: ca\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3.2\n" + +#. module: website_sale_product_description +#: model:ir.model.fields,field_description:website_sale_product_description.field_product_product__public_description +#: model:ir.model.fields,field_description:website_sale_product_description.field_product_template__public_description +#: model_terms:ir.ui.view,arch_db:website_sale_product_description.product_template_form_view +msgid "Description for e-Commerce" +msgstr "Descripció per l' e-Commerce" + +#. module: website_sale_product_description +#: model:ir.model,name:website_sale_product_description.model_product_template +msgid "Product Template" +msgstr "Plantilla de producte" + +#. module: website_sale_product_description +#: model_terms:ir.ui.view,arch_db:website_sale_product_description.product_template_form_view +msgid "This description will be shown on e-commerce frontend" +msgstr "Aquesta descripció serà mostrada al frontend del e-commerce" diff --git a/website_sale_product_description/i18n/es.po b/website_sale_product_description/i18n/es.po new file mode 100644 index 0000000..2e5f6a2 --- /dev/null +++ b/website_sale_product_description/i18n/es.po @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_sale_product_description +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2021-01-06 14:44+0000\n" +"Last-Translator: David Alonso (Solvos) \n" +"Language-Team: none\n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3.2\n" + +#. module: website_sale_product_description +#: model:ir.model.fields,field_description:website_sale_product_description.field_product_product__public_description +#: model:ir.model.fields,field_description:website_sale_product_description.field_product_template__public_description +#: model_terms:ir.ui.view,arch_db:website_sale_product_description.product_template_form_view +msgid "Description for e-Commerce" +msgstr "Descripción para e-Commerce" + +#. module: website_sale_product_description +#: model:ir.model,name:website_sale_product_description.model_product_template +msgid "Product Template" +msgstr "Producto" + +#. module: website_sale_product_description +#: model_terms:ir.ui.view,arch_db:website_sale_product_description.product_template_form_view +msgid "This description will be shown on e-commerce frontend" +msgstr "Esta descripción se mostrará en el frontend del e-commerce" diff --git a/website_sale_product_description/i18n/es_AR.po b/website_sale_product_description/i18n/es_AR.po new file mode 100644 index 0000000..dd3a4f0 --- /dev/null +++ b/website_sale_product_description/i18n/es_AR.po @@ -0,0 +1,43 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_sale_product_description +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2021-09-11 19:33+0000\n" +"Last-Translator: Ignacio Buioli \n" +"Language-Team: none\n" +"Language: es_AR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3.2\n" + +#. module: website_sale_product_description +#: model:ir.model.fields,field_description:website_sale_product_description.field_product_product__public_description +#: model:ir.model.fields,field_description:website_sale_product_description.field_product_template__public_description +#: model_terms:ir.ui.view,arch_db:website_sale_product_description.product_template_form_view +msgid "Description for e-Commerce" +msgstr "Descripción para el e-Commerce" + +#. module: website_sale_product_description +#: model:ir.model,name:website_sale_product_description.model_product_template +msgid "Product Template" +msgstr "Plantilla de Producto" + +#. module: website_sale_product_description +#: model_terms:ir.ui.view,arch_db:website_sale_product_description.product_template_form_view +msgid "This description will be shown on e-commerce frontend" +msgstr "Esta descripción se mostrará en la interfaz de comercio electrónico" + +#~ msgid "Display Name" +#~ msgstr "Mostrar Nombre" + +#~ msgid "ID" +#~ msgstr "ID" + +#~ msgid "Last Modified on" +#~ msgstr "Última modificación en" diff --git a/website_sale_product_description/i18n/es_ES.po b/website_sale_product_description/i18n/es_ES.po new file mode 100644 index 0000000..87344fd --- /dev/null +++ b/website_sale_product_description/i18n/es_ES.po @@ -0,0 +1,32 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_sale_product_description +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: es_ES\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" + +#. module: website_sale_product_description +#: model:ir.model.fields,field_description:website_sale_product_description.field_product_product__public_description +#: model:ir.model.fields,field_description:website_sale_product_description.field_product_template__public_description +#: model_terms:ir.ui.view,arch_db:website_sale_product_description.product_template_form_view +msgid "Description for e-Commerce" +msgstr "" + +#. module: website_sale_product_description +#: model:ir.model,name:website_sale_product_description.model_product_template +msgid "Product Template" +msgstr "" + +#. module: website_sale_product_description +#: model_terms:ir.ui.view,arch_db:website_sale_product_description.product_template_form_view +msgid "This description will be shown on e-commerce frontend" +msgstr "" diff --git a/website_sale_product_description/i18n/nl.po b/website_sale_product_description/i18n/nl.po new file mode 100644 index 0000000..ccb6712 --- /dev/null +++ b/website_sale_product_description/i18n/nl.po @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_sale_product_description +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2021-04-05 18:46+0000\n" +"Last-Translator: Bosd \n" +"Language-Team: none\n" +"Language: nl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3.2\n" + +#. module: website_sale_product_description +#: model:ir.model.fields,field_description:website_sale_product_description.field_product_product__public_description +#: model:ir.model.fields,field_description:website_sale_product_description.field_product_template__public_description +#: model_terms:ir.ui.view,arch_db:website_sale_product_description.product_template_form_view +msgid "Description for e-Commerce" +msgstr "Beschrijving voor E-Commerce" + +#. module: website_sale_product_description +#: model:ir.model,name:website_sale_product_description.model_product_template +msgid "Product Template" +msgstr "Product Sjabloon" + +#. module: website_sale_product_description +#: model_terms:ir.ui.view,arch_db:website_sale_product_description.product_template_form_view +msgid "This description will be shown on e-commerce frontend" +msgstr "Deze omschrijving zal worden weergegeven op de E-comerce productpagina" diff --git a/website_sale_product_description/i18n/pt.po b/website_sale_product_description/i18n/pt.po new file mode 100644 index 0000000..c8216c9 --- /dev/null +++ b/website_sale_product_description/i18n/pt.po @@ -0,0 +1,43 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_sale_product_description +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2021-07-27 18:49+0000\n" +"Last-Translator: Pedro Castro Silva \n" +"Language-Team: none\n" +"Language: pt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" +"X-Generator: Weblate 4.3.2\n" + +#. module: website_sale_product_description +#: model:ir.model.fields,field_description:website_sale_product_description.field_product_product__public_description +#: model:ir.model.fields,field_description:website_sale_product_description.field_product_template__public_description +#: model_terms:ir.ui.view,arch_db:website_sale_product_description.product_template_form_view +msgid "Description for e-Commerce" +msgstr "Descrição para e-Commerce" + +#. module: website_sale_product_description +#: model:ir.model,name:website_sale_product_description.model_product_template +msgid "Product Template" +msgstr "Modelo de Produto" + +#. module: website_sale_product_description +#: model_terms:ir.ui.view,arch_db:website_sale_product_description.product_template_form_view +msgid "This description will be shown on e-commerce frontend" +msgstr "Esta descrição será exibida no frontend do e-commerce" + +#~ msgid "Display Name" +#~ msgstr "Nome a Exibir" + +#~ msgid "ID" +#~ msgstr "Id" + +#~ msgid "Last Modified on" +#~ msgstr "Última Modificação em" diff --git a/website_sale_product_description/i18n/website_sale_product_description.pot b/website_sale_product_description/i18n/website_sale_product_description.pot new file mode 100644 index 0000000..3dcbc5e --- /dev/null +++ b/website_sale_product_description/i18n/website_sale_product_description.pot @@ -0,0 +1,31 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_sale_product_description +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: website_sale_product_description +#: model:ir.model.fields,field_description:website_sale_product_description.field_product_product__public_description +#: model:ir.model.fields,field_description:website_sale_product_description.field_product_template__public_description +#: model_terms:ir.ui.view,arch_db:website_sale_product_description.product_template_form_view +msgid "Description for e-Commerce" +msgstr "" + +#. module: website_sale_product_description +#: model:ir.model,name:website_sale_product_description.model_product_template +msgid "Product Template" +msgstr "" + +#. module: website_sale_product_description +#: model_terms:ir.ui.view,arch_db:website_sale_product_description.product_template_form_view +msgid "This description will be shown on e-commerce frontend" +msgstr "" diff --git a/website_sale_product_description/models/__init__.py b/website_sale_product_description/models/__init__.py new file mode 100644 index 0000000..9649db7 --- /dev/null +++ b/website_sale_product_description/models/__init__.py @@ -0,0 +1 @@ +from . import product diff --git a/website_sale_product_description/models/product.py b/website_sale_product_description/models/product.py new file mode 100644 index 0000000..bcd91b5 --- /dev/null +++ b/website_sale_product_description/models/product.py @@ -0,0 +1,16 @@ +# © 2020 Solvos Consultoría Informática () +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from odoo import fields, models +from odoo.tools.translate import html_translate + + +class ProductTemplate(models.Model): + _inherit = "product.template" + + public_description = fields.Html( + "Description for e-Commerce", + sanitize_attributes=False, + translate=html_translate, + copy=False, + ) diff --git a/website_sale_product_description/readme/CONTRIBUTORS.rst b/website_sale_product_description/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000..ad72c4d --- /dev/null +++ b/website_sale_product_description/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* David Alonso +* Mantas Šniukas diff --git a/website_sale_product_description/readme/DESCRIPTION.rst b/website_sale_product_description/readme/DESCRIPTION.rst new file mode 100644 index 0000000..3c3adc9 --- /dev/null +++ b/website_sale_product_description/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +With this addon you can edit a specific HTML description for a product. +This description will be shown within the e-Commerce product page. diff --git a/website_sale_product_description/readme/USAGE.rst b/website_sale_product_description/readme/USAGE.rst new file mode 100644 index 0000000..67f1183 --- /dev/null +++ b/website_sale_product_description/readme/USAGE.rst @@ -0,0 +1,11 @@ +Once installed, website description is editable from product form: + +.. figure:: ../static/description/product.png + :alt: Kanban view + :width: 600 px + +Then, this description will be shown within the e-Commerce product page: + +.. figure:: ../static/description/website-product.png + :alt: Kanban view + :width: 600 px diff --git a/website_sale_product_description/static/description/icon.png b/website_sale_product_description/static/description/icon.png new file mode 100644 index 0000000..3a0328b Binary files /dev/null and b/website_sale_product_description/static/description/icon.png differ diff --git a/website_sale_product_description/static/description/index.html b/website_sale_product_description/static/description/index.html new file mode 100644 index 0000000..f653b82 --- /dev/null +++ b/website_sale_product_description/static/description/index.html @@ -0,0 +1,435 @@ + + + + + + +Website Sale Product Description + + + +
+

Website Sale Product Description

+ + +

Beta License: AGPL-3 OCA/e-commerce Translate me on Weblate Try me on Runboat

+

With this addon you can edit a specific HTML description for a product. +This description will be shown within the e-Commerce product page.

+

Table of contents

+ +
+

Usage

+

Once installed, website description is editable from product form:

+
+Kanban view +
+

Then, this description will be shown within the e-Commerce product page:

+
+Kanban view +
+
+
+

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 to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Solvos
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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/e-commerce project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/website_sale_product_description/static/description/product.png b/website_sale_product_description/static/description/product.png new file mode 100644 index 0000000..3d1f148 Binary files /dev/null and b/website_sale_product_description/static/description/product.png differ diff --git a/website_sale_product_description/static/description/website-product.png b/website_sale_product_description/static/description/website-product.png new file mode 100644 index 0000000..4e3af37 Binary files /dev/null and b/website_sale_product_description/static/description/website-product.png differ diff --git a/website_sale_product_description/views/product_template.xml b/website_sale_product_description/views/product_template.xml new file mode 100644 index 0000000..4d5a142 --- /dev/null +++ b/website_sale_product_description/views/product_template.xml @@ -0,0 +1,20 @@ + + + + product.template.form.view.inherit + product.template + + + + + + + + + + diff --git a/website_sale_product_description/views/website_sale_template.xml b/website_sale_product_description/views/website_sale_template.xml new file mode 100644 index 0000000..8933596 --- /dev/null +++ b/website_sale_product_description/views/website_sale_template.xml @@ -0,0 +1,16 @@ + + + +