diff --git a/product_template_tags/README.rst b/product_template_tags/README.rst new file mode 100644 index 000000000000..aa2e71af6cf0 --- /dev/null +++ b/product_template_tags/README.rst @@ -0,0 +1,101 @@ +===================== +Product Template Tags +===================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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-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%2Fproduct--attribute-lightgray.png?logo=github + :target: https://github.com/OCA/product-attribute/tree/13.0/product_template_tags + :alt: OCA/product-attribute +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/product-attribute-13-0/product-attribute-13-0-product_template_tags + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/135/13.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This addon allows to add tags on products. + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +To configure this module, you need to: + +#. Go to the product form view. +#. Create and edit tags using the form view + +Usage +===== + +To use this module, you need to: + +#. On the product view, you can add and create tags. +#. Tags will be shown in the 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 smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* ACSONE SA/NV +* Numigi + +Contributors +~~~~~~~~~~~~ + +* Benjamin Willig +* Numigi (tm) and all its contributors (https://bit.ly/numigiens) +* Patrick Wilson +* Pimolnat Suntian + +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. + +.. |maintainer-patrickrwilson| image:: https://github.com/patrickrwilson.png?size=40px + :target: https://github.com/patrickrwilson + :alt: patrickrwilson + +Current `maintainer `__: + +|maintainer-patrickrwilson| + +This module is part of the `OCA/product-attribute `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/product_template_tags/__init__.py b/product_template_tags/__init__.py new file mode 100644 index 000000000000..0650744f6bc6 --- /dev/null +++ b/product_template_tags/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/product_template_tags/__manifest__.py b/product_template_tags/__manifest__.py new file mode 100644 index 000000000000..8180bcf53f02 --- /dev/null +++ b/product_template_tags/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright 2017 ACSONE SA/NV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Product Template Tags", + "summary": "This addon allow to add tags on products", + "version": "13.0.1.0.0", + "license": "AGPL-3", + "author": "ACSONE SA/NV, Odoo Community Association (OCA), Numigi", + "website": "https://github.com/OCA/product-attribute", + "depends": ["product"], + "data": [ + "security/product_template_rule.xml", + "security/product_template_tag.xml", + "views/product_template.xml", + "views/product_template_tag.xml", + ], + "maintainers": ["patrickrwilson"], +} diff --git a/product_template_tags/i18n/de.po b/product_template_tags/i18n/de.po new file mode 100644 index 000000000000..022839234337 --- /dev/null +++ b/product_template_tags/i18n/de.po @@ -0,0 +1,103 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_template_tags +# +# Translators: +# Niki Waibel, 2018 +# Rudolf Schnapka , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-29 08:49+0000\n" +"PO-Revision-Date: 2018-01-29 08:49+0000\n" +"Last-Translator: Rudolf Schnapka , 2018\n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" +"Language: de\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: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__products_count +msgid "# of Products" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__color +msgid "Color Index" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__company_id +#: model_terms:ir.ui.view,arch_db:product_template_tags.product_template_tag_search_view +msgid "Company" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__create_uid +msgid "Created by" +msgstr "Angelegt durch" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__create_date +msgid "Created on" +msgstr "Angelegt am" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__display_name +msgid "Display Name" +msgstr "Anzeigebezeichnung" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__id +msgid "ID" +msgstr "ID" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag____last_update +msgid "Last Modified on" +msgstr "Zuletzt verändert am" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__write_uid +msgid "Last Updated by" +msgstr "Zuletzt aktualisiert durch" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__write_date +msgid "Last Updated on" +msgstr "Zuletzt aktualisiert am" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__name +msgid "Name" +msgstr "Bezeichnung" + +#. module: product_template_tags +#: model:ir.model,name:product_template_tags.model_product_template_tag +msgid "Product Tag" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_product__tag_ids +#: model:ir.model.fields,field_description:product_template_tags.field_product_template__tag_ids +#: model:ir.ui.menu,name:product_template_tags.product_template_tag_config_menu +msgid "Product Tags" +msgstr "" + +#. module: product_template_tags +#: model:ir.model,name:product_template_tags.model_product_template +msgid "Product Template" +msgstr "Produktvorlage" + +#. module: product_template_tags +#: model:ir.actions.act_window,name:product_template_tags.product_template_tag_act_window +msgid "Product Template Tag" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__product_tmpl_ids +msgid "Products" +msgstr "Produkte" diff --git a/product_template_tags/i18n/es.po b/product_template_tags/i18n/es.po new file mode 100644 index 000000000000..29fa43a849de --- /dev/null +++ b/product_template_tags/i18n/es.po @@ -0,0 +1,102 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_template_tags +# +# Translators: +# Pedro M. Baeza , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-03 02:14+0000\n" +"PO-Revision-Date: 2018-01-03 02:14+0000\n" +"Last-Translator: Pedro M. Baeza , 2018\n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\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" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__products_count +msgid "# of Products" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__color +msgid "Color Index" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__company_id +#: model_terms:ir.ui.view,arch_db:product_template_tags.product_template_tag_search_view +msgid "Company" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__create_uid +msgid "Created by" +msgstr "Creado por" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__create_date +msgid "Created on" +msgstr "Creado el" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__display_name +msgid "Display Name" +msgstr "Nombre mostrado" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__id +msgid "ID" +msgstr "ID" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag____last_update +msgid "Last Modified on" +msgstr "Última modificación el" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__write_uid +msgid "Last Updated by" +msgstr "Última actualización por" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__write_date +msgid "Last Updated on" +msgstr "Última modificación el" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__name +msgid "Name" +msgstr "" + +#. module: product_template_tags +#: model:ir.model,name:product_template_tags.model_product_template_tag +msgid "Product Tag" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_product__tag_ids +#: model:ir.model.fields,field_description:product_template_tags.field_product_template__tag_ids +#: model:ir.ui.menu,name:product_template_tags.product_template_tag_config_menu +msgid "Product Tags" +msgstr "" + +#. module: product_template_tags +#: model:ir.model,name:product_template_tags.model_product_template +msgid "Product Template" +msgstr "Plantilla de producto" + +#. module: product_template_tags +#: model:ir.actions.act_window,name:product_template_tags.product_template_tag_act_window +msgid "Product Template Tag" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__product_tmpl_ids +msgid "Products" +msgstr "Productos" diff --git a/product_template_tags/i18n/fr.po b/product_template_tags/i18n/fr.po new file mode 100644 index 000000000000..7e9afa447642 --- /dev/null +++ b/product_template_tags/i18n/fr.po @@ -0,0 +1,102 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_template_tags +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-27 03:49+0000\n" +"PO-Revision-Date: 2018-01-27 03:49+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"Language: fr\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: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__products_count +msgid "# of Products" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__color +msgid "Color Index" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__company_id +#: model_terms:ir.ui.view,arch_db:product_template_tags.product_template_tag_search_view +msgid "Company" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__create_uid +msgid "Created by" +msgstr "Créé par" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__create_date +msgid "Created on" +msgstr "Créé le" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__display_name +msgid "Display Name" +msgstr "Nom affiché" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__id +msgid "ID" +msgstr "ID" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag____last_update +msgid "Last Modified on" +msgstr "Dernière Modification le" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__write_uid +msgid "Last Updated by" +msgstr "Dernière mise à jour par" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__write_date +msgid "Last Updated on" +msgstr "Dernière mise à jour le" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__name +msgid "Name" +msgstr "Nom" + +#. module: product_template_tags +#: model:ir.model,name:product_template_tags.model_product_template_tag +msgid "Product Tag" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_product__tag_ids +#: model:ir.model.fields,field_description:product_template_tags.field_product_template__tag_ids +#: model:ir.ui.menu,name:product_template_tags.product_template_tag_config_menu +msgid "Product Tags" +msgstr "" + +#. module: product_template_tags +#: model:ir.model,name:product_template_tags.model_product_template +msgid "Product Template" +msgstr "Modèle de produit" + +#. module: product_template_tags +#: model:ir.actions.act_window,name:product_template_tags.product_template_tag_act_window +msgid "Product Template Tag" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__product_tmpl_ids +msgid "Products" +msgstr "" diff --git a/product_template_tags/i18n/hr.po b/product_template_tags/i18n/hr.po new file mode 100644 index 000000000000..f2f304846161 --- /dev/null +++ b/product_template_tags/i18n/hr.po @@ -0,0 +1,103 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_template_tags +# +# Translators: +# Bole , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-29 08:49+0000\n" +"PO-Revision-Date: 2018-01-29 08:49+0000\n" +"Last-Translator: Bole , 2018\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"Language: hr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__products_count +msgid "# of Products" +msgstr "# proizvoda" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__color +msgid "Color Index" +msgstr "Index boje" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__company_id +#: model_terms:ir.ui.view,arch_db:product_template_tags.product_template_tag_search_view +msgid "Company" +msgstr "Tvrtka" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__create_uid +msgid "Created by" +msgstr "Kreirao" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__create_date +msgid "Created on" +msgstr "Kreirano" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__display_name +msgid "Display Name" +msgstr "Naziv" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__id +msgid "ID" +msgstr "ID" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag____last_update +msgid "Last Modified on" +msgstr "Zadnje ažurirano" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__write_uid +msgid "Last Updated by" +msgstr "Zadnji ažurirao" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__write_date +msgid "Last Updated on" +msgstr "Zadnje ažurirano" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__name +msgid "Name" +msgstr "naziv" + +#. module: product_template_tags +#: model:ir.model,name:product_template_tags.model_product_template_tag +msgid "Product Tag" +msgstr "Oznaka proizvoda" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_product__tag_ids +#: model:ir.model.fields,field_description:product_template_tags.field_product_template__tag_ids +#: model:ir.ui.menu,name:product_template_tags.product_template_tag_config_menu +msgid "Product Tags" +msgstr "Oznake proizvoda" + +#. module: product_template_tags +#: model:ir.model,name:product_template_tags.model_product_template +msgid "Product Template" +msgstr "Predložak proizvoda" + +#. module: product_template_tags +#: model:ir.actions.act_window,name:product_template_tags.product_template_tag_act_window +msgid "Product Template Tag" +msgstr "Oznaka predloška proizvoda" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__product_tmpl_ids +msgid "Products" +msgstr "Proizvodi" diff --git a/product_template_tags/i18n/it.po b/product_template_tags/i18n/it.po new file mode 100644 index 000000000000..69358b3d313d --- /dev/null +++ b/product_template_tags/i18n/it.po @@ -0,0 +1,103 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_template_tags +# +# Translators: +# Giuliano Lotta , 2018 +# Paolo Valier , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-03 02:14+0000\n" +"PO-Revision-Date: 2018-01-03 02:14+0000\n" +"Last-Translator: Paolo Valier , 2018\n" +"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" +"Language: it\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: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__products_count +msgid "# of Products" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__color +msgid "Color Index" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__company_id +#: model_terms:ir.ui.view,arch_db:product_template_tags.product_template_tag_search_view +msgid "Company" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__create_uid +msgid "Created by" +msgstr "Creato da" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__create_date +msgid "Created on" +msgstr "Creato il" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__display_name +msgid "Display Name" +msgstr "Nome visualizzato" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__id +msgid "ID" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag____last_update +msgid "Last Modified on" +msgstr "Ultima Modifica il" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__write_uid +msgid "Last Updated by" +msgstr "Ultimo Aggiornamento di" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__write_date +msgid "Last Updated on" +msgstr "Ultimo Aggiornamento il" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__name +msgid "Name" +msgstr "" + +#. module: product_template_tags +#: model:ir.model,name:product_template_tags.model_product_template_tag +msgid "Product Tag" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_product__tag_ids +#: model:ir.model.fields,field_description:product_template_tags.field_product_template__tag_ids +#: model:ir.ui.menu,name:product_template_tags.product_template_tag_config_menu +msgid "Product Tags" +msgstr "" + +#. module: product_template_tags +#: model:ir.model,name:product_template_tags.model_product_template +msgid "Product Template" +msgstr "" + +#. module: product_template_tags +#: model:ir.actions.act_window,name:product_template_tags.product_template_tag_act_window +msgid "Product Template Tag" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__product_tmpl_ids +msgid "Products" +msgstr "Prodotti" diff --git a/product_template_tags/i18n/nl_NL.po b/product_template_tags/i18n/nl_NL.po new file mode 100644 index 000000000000..53e96c229b82 --- /dev/null +++ b/product_template_tags/i18n/nl_NL.po @@ -0,0 +1,103 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_template_tags +# +# Translators: +# Peter Hageman , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-03 02:14+0000\n" +"PO-Revision-Date: 2018-01-03 02:14+0000\n" +"Last-Translator: Peter Hageman , 2018\n" +"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/" +"teams/23907/nl_NL/)\n" +"Language: nl_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" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__products_count +msgid "# of Products" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__color +msgid "Color Index" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__company_id +#: model_terms:ir.ui.view,arch_db:product_template_tags.product_template_tag_search_view +msgid "Company" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__create_uid +msgid "Created by" +msgstr "Aangemaakt door" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__create_date +msgid "Created on" +msgstr "Aangemaakt op" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__display_name +msgid "Display Name" +msgstr "Weergavenaam" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__id +msgid "ID" +msgstr "ID" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag____last_update +msgid "Last Modified on" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__write_uid +msgid "Last Updated by" +msgstr "Laatst aangepast door" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__write_date +msgid "Last Updated on" +msgstr "Laatst aangepast op" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__name +msgid "Name" +msgstr "" + +#. module: product_template_tags +#: model:ir.model,name:product_template_tags.model_product_template_tag +msgid "Product Tag" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_product__tag_ids +#: model:ir.model.fields,field_description:product_template_tags.field_product_template__tag_ids +#: model:ir.ui.menu,name:product_template_tags.product_template_tag_config_menu +msgid "Product Tags" +msgstr "" + +#. module: product_template_tags +#: model:ir.model,name:product_template_tags.model_product_template +msgid "Product Template" +msgstr "Productsjabloon" + +#. module: product_template_tags +#: model:ir.actions.act_window,name:product_template_tags.product_template_tag_act_window +msgid "Product Template Tag" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__product_tmpl_ids +msgid "Products" +msgstr "Producten" diff --git a/product_template_tags/i18n/product_template_tags.pot b/product_template_tags/i18n/product_template_tags.pot new file mode 100644 index 000000000000..b3fc1be3f44c --- /dev/null +++ b/product_template_tags/i18n/product_template_tags.pot @@ -0,0 +1,98 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_template_tags +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.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: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__products_count +msgid "# of Products" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__color +msgid "Color Index" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__company_id +#: model_terms:ir.ui.view,arch_db:product_template_tags.product_template_tag_search_view +msgid "Company" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__create_uid +msgid "Created by" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__create_date +msgid "Created on" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__display_name +msgid "Display Name" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__id +msgid "ID" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag____last_update +msgid "Last Modified on" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__write_date +msgid "Last Updated on" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__name +msgid "Name" +msgstr "" + +#. module: product_template_tags +#: model:ir.model,name:product_template_tags.model_product_template_tag +msgid "Product Tag" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_product__tag_ids +#: model:ir.model.fields,field_description:product_template_tags.field_product_template__tag_ids +#: model:ir.ui.menu,name:product_template_tags.product_template_tag_config_menu +msgid "Product Tags" +msgstr "" + +#. module: product_template_tags +#: model:ir.model,name:product_template_tags.model_product_template +msgid "Product Template" +msgstr "" + +#. module: product_template_tags +#: model:ir.actions.act_window,name:product_template_tags.product_template_tag_act_window +msgid "Product Template Tag" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__product_tmpl_ids +msgid "Products" +msgstr "" + diff --git a/product_template_tags/i18n/sl.po b/product_template_tags/i18n/sl.po new file mode 100644 index 000000000000..05a7ed97f5c4 --- /dev/null +++ b/product_template_tags/i18n/sl.po @@ -0,0 +1,103 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_template_tags +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-27 03:49+0000\n" +"PO-Revision-Date: 2018-01-27 03:49+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" +"Language: sl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" +"%100==4 ? 2 : 3);\n" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__products_count +msgid "# of Products" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__color +msgid "Color Index" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__company_id +#: model_terms:ir.ui.view,arch_db:product_template_tags.product_template_tag_search_view +msgid "Company" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__create_uid +msgid "Created by" +msgstr "Ustvaril" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__create_date +msgid "Created on" +msgstr "Ustvarjeno" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__display_name +msgid "Display Name" +msgstr "Prikazni naziv" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__id +msgid "ID" +msgstr "ID" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag____last_update +msgid "Last Modified on" +msgstr "Zadnja sprememba" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__write_uid +msgid "Last Updated by" +msgstr "Zadnji posodobil" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__write_date +msgid "Last Updated on" +msgstr "Zadnja posodobitev" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__name +msgid "Name" +msgstr "Naziv" + +#. module: product_template_tags +#: model:ir.model,name:product_template_tags.model_product_template_tag +msgid "Product Tag" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_product__tag_ids +#: model:ir.model.fields,field_description:product_template_tags.field_product_template__tag_ids +#: model:ir.ui.menu,name:product_template_tags.product_template_tag_config_menu +msgid "Product Tags" +msgstr "" + +#. module: product_template_tags +#: model:ir.model,name:product_template_tags.model_product_template +msgid "Product Template" +msgstr "Predloga proizvoda" + +#. module: product_template_tags +#: model:ir.actions.act_window,name:product_template_tags.product_template_tag_act_window +msgid "Product Template Tag" +msgstr "" + +#. module: product_template_tags +#: model:ir.model.fields,field_description:product_template_tags.field_product_template_tag__product_tmpl_ids +msgid "Products" +msgstr "" diff --git a/product_template_tags/models/__init__.py b/product_template_tags/models/__init__.py new file mode 100644 index 000000000000..4b28608ef187 --- /dev/null +++ b/product_template_tags/models/__init__.py @@ -0,0 +1,2 @@ +from . import product_template +from . import product_template_tag diff --git a/product_template_tags/models/product_template.py b/product_template_tags/models/product_template.py new file mode 100644 index 000000000000..93b68cd3a0b3 --- /dev/null +++ b/product_template_tags/models/product_template.py @@ -0,0 +1,17 @@ +# Copyright 2017 ACSONE SA/NV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class ProductTemplate(models.Model): + + _inherit = "product.template" + + tag_ids = fields.Many2many( + comodel_name="product.template.tag", + string="Product Tags", + relation="product_template_product_tag_rel", + column1="product_tmpl_id", + column2="tag_id", + ) diff --git a/product_template_tags/models/product_template_tag.py b/product_template_tags/models/product_template_tag.py new file mode 100644 index 000000000000..4b452841ec49 --- /dev/null +++ b/product_template_tags/models/product_template_tag.py @@ -0,0 +1,33 @@ +# Copyright 2017 ACSONE SA/NV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import api, fields, models + + +class ProductTemplateTag(models.Model): + + _name = "product.template.tag" + _description = "Product Tag" + + name = fields.Char(string="Name", required=True, translate=True) + color = fields.Integer(string="Color Index") + product_tmpl_ids = fields.Many2many( + comodel_name="product.template", + string="Products", + relation="product_template_product_tag_rel", + column1="tag_id", + column2="product_tmpl_id", + ) + products_count = fields.Integer( + string="# of Products", compute="_compute_products_count", store=True + ) + company_id = fields.Many2one( + comodel_name="res.company", + string="Company", + default=lambda self: self.env.company, + ) + + @api.depends("product_tmpl_ids") + def _compute_products_count(self): + for rec in self: + rec.products_count = len(rec.product_tmpl_ids) diff --git a/product_template_tags/readme/CONFIGURE.rst b/product_template_tags/readme/CONFIGURE.rst new file mode 100644 index 000000000000..318d930cece0 --- /dev/null +++ b/product_template_tags/readme/CONFIGURE.rst @@ -0,0 +1,4 @@ +To configure this module, you need to: + +#. Go to the product form view. +#. Create and edit tags using the form view diff --git a/product_template_tags/readme/CONTRIBUTORS.rst b/product_template_tags/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000000..c86d824a2534 --- /dev/null +++ b/product_template_tags/readme/CONTRIBUTORS.rst @@ -0,0 +1,4 @@ +* Benjamin Willig +* Numigi (tm) and all its contributors (https://bit.ly/numigiens) +* Patrick Wilson +* Pimolnat Suntian diff --git a/product_template_tags/readme/DESCRIPTION.rst b/product_template_tags/readme/DESCRIPTION.rst new file mode 100644 index 000000000000..c8e855f83a34 --- /dev/null +++ b/product_template_tags/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This addon allows to add tags on products. diff --git a/product_template_tags/readme/USAGE.rst b/product_template_tags/readme/USAGE.rst new file mode 100644 index 000000000000..e8e88d0da4a6 --- /dev/null +++ b/product_template_tags/readme/USAGE.rst @@ -0,0 +1,4 @@ +To use this module, you need to: + +#. On the product view, you can add and create tags. +#. Tags will be shown in the kanban view. diff --git a/product_template_tags/security/product_template_rule.xml b/product_template_tags/security/product_template_rule.xml new file mode 100644 index 000000000000..5d975001f05e --- /dev/null +++ b/product_template_tags/security/product_template_rule.xml @@ -0,0 +1,14 @@ + + + + + product.template.tag company (in product_template_tags) + + + + + + ['|', ('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])] + + diff --git a/product_template_tags/security/product_template_tag.xml b/product_template_tags/security/product_template_tag.xml new file mode 100644 index 000000000000..3c88f27b2da4 --- /dev/null +++ b/product_template_tags/security/product_template_tag.xml @@ -0,0 +1,14 @@ + + + + + product.template.tag access user (in product_template_tags) + + + + + + + + diff --git a/product_template_tags/static/description/icon.png b/product_template_tags/static/description/icon.png new file mode 100644 index 000000000000..3a0328b516c4 Binary files /dev/null and b/product_template_tags/static/description/icon.png differ diff --git a/product_template_tags/static/description/index.html b/product_template_tags/static/description/index.html new file mode 100644 index 000000000000..fb99e92370f0 --- /dev/null +++ b/product_template_tags/static/description/index.html @@ -0,0 +1,443 @@ + + + + + + +Product Template Tags + + + +
+

Product Template Tags

+ + +

Beta License: AGPL-3 OCA/product-attribute Translate me on Weblate Try me on Runbot

+

This addon allows to add tags on products.

+

Table of contents

+ +
+

Configuration

+

To configure this module, you need to:

+
    +
  1. Go to the product form view.
  2. +
  3. Create and edit tags using the form view
  4. +
+
+
+

Usage

+

To use this module, you need to:

+
    +
  1. On the product view, you can add and create tags.
  2. +
  3. Tags will be shown in the kanban view.
  4. +
+
+
+

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

+
    +
  • ACSONE SA/NV
  • +
  • Numigi
  • +
+
+
+

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.

+

Current maintainer:

+

patrickrwilson

+

This module is part of the OCA/product-attribute project on GitHub.

+

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

+
+
+
+ + diff --git a/product_template_tags/tests/__init__.py b/product_template_tags/tests/__init__.py new file mode 100644 index 000000000000..11b1950dbb59 --- /dev/null +++ b/product_template_tags/tests/__init__.py @@ -0,0 +1,4 @@ +# Copyright 2017 ACSONE SA/NV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import test_product_template_tags diff --git a/product_template_tags/tests/test_product_template_tags.py b/product_template_tags/tests/test_product_template_tags.py new file mode 100644 index 000000000000..8afe44fd0fe7 --- /dev/null +++ b/product_template_tags/tests/test_product_template_tags.py @@ -0,0 +1,18 @@ +# Copyright 2017 ACSONE SA/NV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo.tests.common import SavepointCase + + +class TestProductTemplateTag(SavepointCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.product_tmpl = cls.env["product.template"].create({"name": "Test Product"}) + + def test_product_template_tag(self): + product_tmpl_tag = self.env["product.template.tag"].create( + {"name": "Test Tag", "product_tmpl_ids": [(6, 0, [self.product_tmpl.id])]} + ) + product_tmpl_tag._compute_products_count() + self.assertEqual(product_tmpl_tag.products_count, 1) diff --git a/product_template_tags/views/product_template.xml b/product_template_tags/views/product_template.xml new file mode 100644 index 000000000000..d889562a2d5c --- /dev/null +++ b/product_template_tags/views/product_template.xml @@ -0,0 +1,47 @@ + + + + + product.template.form + product.template + + + + + + + + + + product.template.kanban (in product_template_tags) + product.template + + + +
+ + + +
+
+
+
+ + + product.template.search (in product_template_tags) + product.template + + + + + + + + +
diff --git a/product_template_tags/views/product_template_tag.xml b/product_template_tags/views/product_template_tag.xml new file mode 100644 index 000000000000..c9b4123fbafa --- /dev/null +++ b/product_template_tags/views/product_template_tag.xml @@ -0,0 +1,81 @@ + + + + + product.template.tag.form (in product_template_tags) + product.template.tag + +
+
+ +
+ +
+ + + + + +
+ + + + + + product.template.tag.search (in product_template_tags) + product.template.tag + + + + + + + + + + + + + product.template.tag.tree (in product_template_tags) + product.template.tag + + + + + + + + + + + Product Template Tag + product.template.tag + tree,form + + +

+ Add tags +

+
+
+ + + Product Tags + + + + +