diff --git a/product_template_tags/README.rst b/product_template_tags/README.rst new file mode 100644 index 00000000000..9f7c681373e --- /dev/null +++ b/product_template_tags/README.rst @@ -0,0 +1,62 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +===================== +Product Template Tags +===================== + +This addon allows to add tags on products. + +Configuration +============= + +* Go on the product form view. +* Create and edit tags using the form view + +Usage +===== + +* On the product view, you can add and create tags. +* Tags will be shown in the kanban view. + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/135/10.0 + +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. + +Credits +======= + +Images +------ + +* Odoo Community Association: `Icon `_. + +Contributors +------------ + +* Benjamin Willig +* Numigi (tm) and all its contributors (https://bit.ly/numigiens) + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +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. + +To contribute to this module, please visit https://odoo-community.org. diff --git a/product_template_tags/__init__.py b/product_template_tags/__init__.py new file mode 100644 index 00000000000..0650744f6bc --- /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 00000000000..79db15bc630 --- /dev/null +++ b/product_template_tags/__manifest__.py @@ -0,0 +1,24 @@ +# 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': '12.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 00000000000..309cb7a95c2 --- /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: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 00000000000..f353da97169 --- /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: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 00000000000..2b736f614eb --- /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: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 00000000000..ec4185db5a4 --- /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: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 00000000000..b3422464be8 --- /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: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 00000000000..9c2fc694353 --- /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: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 00000000000..12f10219cb0 --- /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 11.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: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 00000000000..2158de3d904 --- /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: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 00000000000..4b28608ef18 --- /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/__pycache__/__init__.cpython-36.pyc b/product_template_tags/models/__pycache__/__init__.cpython-36.pyc new file mode 100644 index 00000000000..eb651535478 Binary files /dev/null and b/product_template_tags/models/__pycache__/__init__.cpython-36.pyc differ diff --git a/product_template_tags/models/__pycache__/product_template.cpython-36.pyc b/product_template_tags/models/__pycache__/product_template.cpython-36.pyc new file mode 100644 index 00000000000..b1da0cc964b Binary files /dev/null and b/product_template_tags/models/__pycache__/product_template.cpython-36.pyc differ diff --git a/product_template_tags/models/__pycache__/product_template_tag.cpython-36.pyc b/product_template_tags/models/__pycache__/product_template_tag.cpython-36.pyc new file mode 100644 index 00000000000..d885d4afed7 Binary files /dev/null and b/product_template_tags/models/__pycache__/product_template_tag.cpython-36.pyc differ diff --git a/product_template_tags/models/product_template.py b/product_template_tags/models/product_template.py new file mode 100644 index 00000000000..f801d88deb3 --- /dev/null +++ b/product_template_tags/models/product_template.py @@ -0,0 +1,14 @@ +# 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 00000000000..51e02212290 --- /dev/null +++ b/product_template_tags/models/product_template_tag.py @@ -0,0 +1,32 @@ +# 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._default_company()) + + @api.model + def _default_company(self): + return self.env['res.users']._get_company() + + @api.multi + @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 00000000000..b3ff50ca728 --- /dev/null +++ b/product_template_tags/readme/CONFIGURE.rst @@ -0,0 +1,11 @@ +[ This file is optional, it should explain how to configure + the module before using it; it is aimed at advanced users. ] + +To configure this module, you need to: + +#. Go to the product form view. +#. Create and edit tags using the form view + +.. figure:: ../static/description/image.png + :alt: alternative description + :width: 600 px diff --git a/product_template_tags/readme/CONTRIBUTORS.rst b/product_template_tags/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000000..07edc8c88f2 --- /dev/null +++ b/product_template_tags/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* Benjamin Willig +* Numigi (tm) and all its contributors (https://bit.ly/numigiens) +* Patrick Wilson diff --git a/product_template_tags/readme/DESCRIPTION.rst b/product_template_tags/readme/DESCRIPTION.rst new file mode 100644 index 00000000000..2b748e0205e --- /dev/null +++ b/product_template_tags/readme/DESCRIPTION.rst @@ -0,0 +1,3 @@ +[ This file must be max 2-3 paragraphs, and is required. ] + +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 00000000000..67bb225b9ad --- /dev/null +++ b/product_template_tags/readme/USAGE.rst @@ -0,0 +1,12 @@ +[ This file must be present and contains the usage instructions + for end-users. As all other rst files included in the README, + it MUST NOT contain reStructuredText sections + only body text (paragraphs, lists, tables, etc). Should you need + a more elaborate structure to explain the addon, please create a + Sphinx documentation (which may include this file as a "quick start" + section). ] + +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 00000000000..5d975001f05 --- /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 00000000000..3c88f27b2da --- /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 00000000000..3a0328b516c Binary files /dev/null and b/product_template_tags/static/description/icon.png differ diff --git a/product_template_tags/views/product_template.xml b/product_template_tags/views/product_template.xml new file mode 100644 index 00000000000..a90d28b2632 --- /dev/null +++ b/product_template_tags/views/product_template.xml @@ -0,0 +1,49 @@ + + + + + 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 00000000000..37c4f26071d --- /dev/null +++ b/product_template_tags/views/product_template_tag.xml @@ -0,0 +1,76 @@ + + + + + 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 + form + + + + Product Tags + + + + +