diff --git a/product_category_tag/README.rst b/product_category_tag/README.rst new file mode 100644 index 00000000000..2faebd4bfed --- /dev/null +++ b/product_category_tag/README.rst @@ -0,0 +1,97 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + +==================== +Product Category Tag +==================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:92a41650b8c9a8edf39f61cedb5a9f33c3bf628cb24b58b85c7e99ec6d1eaac7 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/license-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/18.0/product_category_tag + :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-18-0/product-attribute-18-0-product_category_tag + :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/product-attribute&target_branch=18.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows you to tag product categories with custom tags. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +- Navigate to Inventoy > Configuration > Product Categories. +- Open the product category you want to tag. +- In the "Tags" tab, you can add or remove tags for that category. + +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 +------- + +* APSL-Nagarro + +Contributors +------------ + +`APSL-Nagarro `__: + +- Patryk Pyczko + +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-ppyczko| image:: https://github.com/ppyczko.png?size=40px + :target: https://github.com/ppyczko + :alt: ppyczko + +Current `maintainer `__: + +|maintainer-ppyczko| + +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_category_tag/__init__.py b/product_category_tag/__init__.py new file mode 100644 index 00000000000..0b8460dfec6 --- /dev/null +++ b/product_category_tag/__init__.py @@ -0,0 +1,4 @@ +# Copyright 2025 Patryk Pyczko (APSL-Nagarro) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from . import models diff --git a/product_category_tag/__manifest__.py b/product_category_tag/__manifest__.py new file mode 100644 index 00000000000..7f0595f7a43 --- /dev/null +++ b/product_category_tag/__manifest__.py @@ -0,0 +1,20 @@ +# Copyright 2025 Patryk Pyczko (APSL-Nagarro) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "Product Category Tag", + "version": "15.0.1.0.0", + "summary": "Add tags to product categories", + "website": "https://github.com/OCA/product-attribute", + "author": "APSL-Nagarro, Odoo Community Association (OCA)", + "maintainers": ["ppyczko"], + "license": "AGPL-3", + "application": False, + "installable": True, + "depends": ["product", "account", "stock"], + "data": [ + "security/ir.model.access.csv", + "views/product_category_tag_views.xml", + "views/product_category_views.xml", + ], +} diff --git a/product_category_tag/i18n/es.po b/product_category_tag/i18n/es.po new file mode 100644 index 00000000000..345a21c1e4e --- /dev/null +++ b/product_category_tag/i18n/es.po @@ -0,0 +1,90 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_category_tag +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-06-30 11:01+0000\n" +"PO-Revision-Date: 2025-06-30 11:01+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: product_category_tag +#: model:ir.actions.act_window,name:product_category_tag.action_product_category_tag +#: model:ir.ui.menu,name:product_category_tag.menu_product_category_tag_root +#: model_terms:ir.ui.view,arch_db:product_category_tag.product_category_form_view +msgid "Category Tags" +msgstr "Etiquetas de categoría" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__color +msgid "Color" +msgstr "Color" + +#. module: product_category_tag +#: model_terms:ir.actions.act_window,help:product_category_tag.action_product_category_tag +msgid "Create new tags for your product categories." +msgstr "Crea nuevas etiquetas para tus categorías de producto." + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__create_uid +msgid "Created by" +msgstr "Creado por" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__create_date +msgid "Created on" +msgstr "Creado el" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__display_name +msgid "Display Name" +msgstr "Nombre mostrado" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__id +msgid "ID" +msgstr "ID" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__write_uid +msgid "Last Updated by" +msgstr "Última actualización por" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__write_date +msgid "Last Updated on" +msgstr "Última actualización el" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__name +msgid "Name" +msgstr "Nombre" + +#. module: product_category_tag +#: model:ir.model,name:product_category_tag.model_product_category +msgid "Product Category" +msgstr "Categoría de producto" + +#. module: product_category_tag +#: model:ir.model,name:product_category_tag.model_product_category_tag +msgid "Product Category Tag" +msgstr "Etiqueta de categoría de producto" + +#. module: product_category_tag +#: model:ir.model.constraint,message:product_category_tag.constraint_product_category_tag_category_tag_name_uniq +msgid "Tag name already exists!" +msgstr "¡El nombre de la etiqueta ya existe!" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category__tag_ids +#: model_terms:ir.ui.view,arch_db:product_category_tag.product_category_search_view +#: model_terms:ir.ui.view,arch_db:product_category_tag.view_product_category_tag_form +msgid "Tags" +msgstr "Etiquetas" diff --git a/product_category_tag/i18n/fr.po b/product_category_tag/i18n/fr.po new file mode 100644 index 00000000000..d3ba8180f89 --- /dev/null +++ b/product_category_tag/i18n/fr.po @@ -0,0 +1,95 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_category_tag +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.0-20240924\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-02-19 08:39+0000\n" +"PO-Revision-Date: 2026-02-19 08:39+0000\n" +"Last-Translator: teicee \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_category_tag +#: model:ir.actions.act_window,name:product_category_tag.action_product_category_tag +#: model:ir.ui.menu,name:product_category_tag.menu_product_category_tag_root +#: model_terms:ir.ui.view,arch_db:product_category_tag.product_category_form_view +msgid "Category Tags" +msgstr "Tags de Catégorie" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__color +msgid "Color" +msgstr "Couleur" + +#. module: product_category_tag +#: model_terms:ir.actions.act_window,help:product_category_tag.action_product_category_tag +msgid "Create new tags for your product categories." +msgstr "Créer des nouveaux tags pour vos catégories d'articles" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__create_uid +msgid "Created by" +msgstr "Créé par" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__create_date +msgid "Created on" +msgstr "Créé le" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__display_name +msgid "Display Name" +msgstr "Nom d'affichage" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__id +msgid "ID" +msgstr "" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag____last_update +msgid "Last Modified on" +msgstr "Dernière modification le" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__write_uid +msgid "Last Updated by" +msgstr "Dernière mise à jour par" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__write_date +msgid "Last Updated on" +msgstr "Dernière mise à jour le" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__name +msgid "Name" +msgstr "Nom" + +#. module: product_category_tag +#: model:ir.model,name:product_category_tag.model_product_category +msgid "Product Category" +msgstr "Catégorie d'article" + +#. module: product_category_tag +#: model:ir.model,name:product_category_tag.model_product_category_tag +msgid "Product Category Tag" +msgstr "Tag de Catégorie d'article" + +#. module: product_category_tag +#: model:ir.model.constraint,message:product_category_tag.constraint_product_category_tag_category_tag_name_uniq +msgid "Tag name already exists!" +msgstr "Ce tag existe déjà!" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category__tag_ids +#: model_terms:ir.ui.view,arch_db:product_category_tag.product_category_search_view +#: model_terms:ir.ui.view,arch_db:product_category_tag.view_product_category_tag_form +msgid "Tags" +msgstr "" diff --git a/product_category_tag/i18n/it.po b/product_category_tag/i18n/it.po new file mode 100644 index 00000000000..8d0ca04e547 --- /dev/null +++ b/product_category_tag/i18n/it.po @@ -0,0 +1,91 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_category_tag +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2025-07-23 14:25+0000\n" +"Last-Translator: mymage \n" +"Language-Team: none\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" +"X-Generator: Weblate 5.10.4\n" + +#. module: product_category_tag +#: model:ir.actions.act_window,name:product_category_tag.action_product_category_tag +#: model:ir.ui.menu,name:product_category_tag.menu_product_category_tag_root +#: model_terms:ir.ui.view,arch_db:product_category_tag.product_category_form_view +msgid "Category Tags" +msgstr "Etichette categoria" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__color +msgid "Color" +msgstr "Colore" + +#. module: product_category_tag +#: model_terms:ir.actions.act_window,help:product_category_tag.action_product_category_tag +msgid "Create new tags for your product categories." +msgstr "Crea nuove etichette per le categorie prodotto." + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__create_uid +msgid "Created by" +msgstr "Creato da" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__create_date +msgid "Created on" +msgstr "Creato il" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__display_name +msgid "Display Name" +msgstr "Nome visualizzato" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__id +msgid "ID" +msgstr "ID" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__write_uid +msgid "Last Updated by" +msgstr "Ultimo aggiornamento di" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__write_date +msgid "Last Updated on" +msgstr "Ultimo aggiornamento il" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__name +msgid "Name" +msgstr "Nome" + +#. module: product_category_tag +#: model:ir.model,name:product_category_tag.model_product_category +msgid "Product Category" +msgstr "Categoria prodotto" + +#. module: product_category_tag +#: model:ir.model,name:product_category_tag.model_product_category_tag +msgid "Product Category Tag" +msgstr "Etichetta categoria prodotto" + +#. module: product_category_tag +#: model:ir.model.constraint,message:product_category_tag.constraint_product_category_tag_category_tag_name_uniq +msgid "Tag name already exists!" +msgstr "Il nome dell'etichetta esiste già!" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category__tag_ids +#: model_terms:ir.ui.view,arch_db:product_category_tag.product_category_search_view +#: model_terms:ir.ui.view,arch_db:product_category_tag.view_product_category_tag_form +msgid "Tags" +msgstr "Etichette" diff --git a/product_category_tag/i18n/product_category_tag.pot b/product_category_tag/i18n/product_category_tag.pot new file mode 100644 index 00000000000..f522020c19d --- /dev/null +++ b/product_category_tag/i18n/product_category_tag.pot @@ -0,0 +1,88 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_category_tag +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.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_category_tag +#: model:ir.actions.act_window,name:product_category_tag.action_product_category_tag +#: model:ir.ui.menu,name:product_category_tag.menu_product_category_tag_root +#: model_terms:ir.ui.view,arch_db:product_category_tag.product_category_form_view +msgid "Category Tags" +msgstr "" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__color +msgid "Color" +msgstr "" + +#. module: product_category_tag +#: model_terms:ir.actions.act_window,help:product_category_tag.action_product_category_tag +msgid "Create new tags for your product categories." +msgstr "" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__create_uid +msgid "Created by" +msgstr "" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__create_date +msgid "Created on" +msgstr "" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__display_name +msgid "Display Name" +msgstr "" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__id +msgid "ID" +msgstr "" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__write_date +msgid "Last Updated on" +msgstr "" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__name +msgid "Name" +msgstr "" + +#. module: product_category_tag +#: model:ir.model,name:product_category_tag.model_product_category +msgid "Product Category" +msgstr "" + +#. module: product_category_tag +#: model:ir.model,name:product_category_tag.model_product_category_tag +msgid "Product Category Tag" +msgstr "" + +#. module: product_category_tag +#: model:ir.model.constraint,message:product_category_tag.constraint_product_category_tag_category_tag_name_uniq +msgid "Tag name already exists!" +msgstr "" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category__tag_ids +#: model_terms:ir.ui.view,arch_db:product_category_tag.product_category_search_view +#: model_terms:ir.ui.view,arch_db:product_category_tag.view_product_category_tag_form +msgid "Tags" +msgstr "" diff --git a/product_category_tag/models/__init__.py b/product_category_tag/models/__init__.py new file mode 100644 index 00000000000..6f6366bb5fb --- /dev/null +++ b/product_category_tag/models/__init__.py @@ -0,0 +1,5 @@ +# Copyright 2025 Patryk Pyczko (APSL-Nagarro) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from . import product_category_tag +from . import product_category diff --git a/product_category_tag/models/product_category.py b/product_category_tag/models/product_category.py new file mode 100644 index 00000000000..5cddd254f08 --- /dev/null +++ b/product_category_tag/models/product_category.py @@ -0,0 +1,16 @@ +# Copyright 2025 Patryk Pyczko (APSL-Nagarro) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class ProductCategory(models.Model): + _inherit = "product.category" + + tag_ids = fields.Many2many( + comodel_name="product.category.tag", + relation="product_category_tag_rel", + column1="category_id", + column2="tag_id", + string="Tags", + ) diff --git a/product_category_tag/models/product_category_tag.py b/product_category_tag/models/product_category_tag.py new file mode 100644 index 00000000000..8a187a13317 --- /dev/null +++ b/product_category_tag/models/product_category_tag.py @@ -0,0 +1,22 @@ +# Copyright 2025 Patryk Pyczko (APSL-Nagarro) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from random import randint + +from odoo import fields, models + + +class ProductCategoryTag(models.Model): + _name = "product.category.tag" + _description = "Product Category Tag" + + name = fields.Char(required=True, translate=True) + + def _get_default_color(self): + return randint(1, 11) + + color = fields.Integer(default=lambda self: self._get_default_color()) + + _sql_constraints = [ + ("category_tag_name_uniq", "unique (name)", "Tag name already exists!"), + ] diff --git a/product_category_tag/pyproject.toml b/product_category_tag/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/product_category_tag/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/product_category_tag/readme/CONTRIBUTORS.md b/product_category_tag/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..082d126e6ce --- /dev/null +++ b/product_category_tag/readme/CONTRIBUTORS.md @@ -0,0 +1,2 @@ + [APSL-Nagarro](https://www.apsl.tech): + - Patryk Pyczko \<\> diff --git a/product_category_tag/readme/DESCRIPTION.md b/product_category_tag/readme/DESCRIPTION.md new file mode 100644 index 00000000000..96cea8b7f6b --- /dev/null +++ b/product_category_tag/readme/DESCRIPTION.md @@ -0,0 +1 @@ +This module allows you to tag product categories with custom tags. diff --git a/product_category_tag/readme/USAGE.md b/product_category_tag/readme/USAGE.md new file mode 100644 index 00000000000..48576484567 --- /dev/null +++ b/product_category_tag/readme/USAGE.md @@ -0,0 +1,3 @@ +- Navigate to Inventoy > Configuration > Product Categories. +- Open the product category you want to tag. +- In the "Tags" tab, you can add or remove tags for that category. diff --git a/product_category_tag/security/ir.model.access.csv b/product_category_tag/security/ir.model.access.csv new file mode 100644 index 00000000000..f001898ceb1 --- /dev/null +++ b/product_category_tag/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_product_category_tag,access_product_category_tag,model_product_category_tag,base.group_user,1,1,1,1 diff --git a/product_category_tag/static/description/icon.png b/product_category_tag/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/product_category_tag/static/description/icon.png differ diff --git a/product_category_tag/static/description/index.html b/product_category_tag/static/description/index.html new file mode 100644 index 00000000000..dbea45fd993 --- /dev/null +++ b/product_category_tag/static/description/index.html @@ -0,0 +1,441 @@ + + + + + +README.rst + + + +
+ + + +Odoo Community Association + +
+

Product Category Tag

+ +

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

+

This module allows you to tag product categories with custom tags.

+

Table of contents

+ +
+

Usage

+
    +
  • Navigate to Inventoy > Configuration > Product Categories.
  • +
  • Open the product category you want to tag.
  • +
  • In the “Tags” tab, you can add or remove tags for that category.
  • +
+
+
+

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

+
    +
  • APSL-Nagarro
  • +
+
+
+

Contributors

+

APSL-Nagarro:

+ +
+
+

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:

+

ppyczko

+

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_category_tag/views/product_category_tag_views.xml b/product_category_tag/views/product_category_tag_views.xml new file mode 100644 index 00000000000..6229ec9d1e6 --- /dev/null +++ b/product_category_tag/views/product_category_tag_views.xml @@ -0,0 +1,58 @@ + + + + + product.category.tag.tree + product.category.tag + + + + + + + + + + product.category.tag.form + product.category.tag + +
+ +
+
+
+

+ +

+
+ + + + + +
+
+
+
+ + + Category Tags + product.category.tag + tree,form + +

+ Create new tags for your product categories. +

+
+
+ + +
diff --git a/product_category_tag/views/product_category_views.xml b/product_category_tag/views/product_category_views.xml new file mode 100644 index 00000000000..be282822d3a --- /dev/null +++ b/product_category_tag/views/product_category_views.xml @@ -0,0 +1,58 @@ + + + + + product.category.tree.inherit.tags + product.category + + + + + + + + + + product.category.form.inherit.tags + product.category + + + + + + + + + + + + product.category.search.inherit.tags + product.category + + + + + + + + + diff --git a/product_ingredient/product_category_tag/i18n/fr.po b/product_ingredient/product_category_tag/i18n/fr.po new file mode 100644 index 00000000000..d3ba8180f89 --- /dev/null +++ b/product_ingredient/product_category_tag/i18n/fr.po @@ -0,0 +1,95 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_category_tag +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.0-20240924\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-02-19 08:39+0000\n" +"PO-Revision-Date: 2026-02-19 08:39+0000\n" +"Last-Translator: teicee \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_category_tag +#: model:ir.actions.act_window,name:product_category_tag.action_product_category_tag +#: model:ir.ui.menu,name:product_category_tag.menu_product_category_tag_root +#: model_terms:ir.ui.view,arch_db:product_category_tag.product_category_form_view +msgid "Category Tags" +msgstr "Tags de Catégorie" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__color +msgid "Color" +msgstr "Couleur" + +#. module: product_category_tag +#: model_terms:ir.actions.act_window,help:product_category_tag.action_product_category_tag +msgid "Create new tags for your product categories." +msgstr "Créer des nouveaux tags pour vos catégories d'articles" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__create_uid +msgid "Created by" +msgstr "Créé par" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__create_date +msgid "Created on" +msgstr "Créé le" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__display_name +msgid "Display Name" +msgstr "Nom d'affichage" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__id +msgid "ID" +msgstr "" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag____last_update +msgid "Last Modified on" +msgstr "Dernière modification le" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__write_uid +msgid "Last Updated by" +msgstr "Dernière mise à jour par" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__write_date +msgid "Last Updated on" +msgstr "Dernière mise à jour le" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__name +msgid "Name" +msgstr "Nom" + +#. module: product_category_tag +#: model:ir.model,name:product_category_tag.model_product_category +msgid "Product Category" +msgstr "Catégorie d'article" + +#. module: product_category_tag +#: model:ir.model,name:product_category_tag.model_product_category_tag +msgid "Product Category Tag" +msgstr "Tag de Catégorie d'article" + +#. module: product_category_tag +#: model:ir.model.constraint,message:product_category_tag.constraint_product_category_tag_category_tag_name_uniq +msgid "Tag name already exists!" +msgstr "Ce tag existe déjà!" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category__tag_ids +#: model_terms:ir.ui.view,arch_db:product_category_tag.product_category_search_view +#: model_terms:ir.ui.view,arch_db:product_category_tag.view_product_category_tag_form +msgid "Tags" +msgstr "" diff --git a/setup/product_category_tag/odoo/addons/product_category_tag/README.rst b/setup/product_category_tag/odoo/addons/product_category_tag/README.rst new file mode 100644 index 00000000000..2faebd4bfed --- /dev/null +++ b/setup/product_category_tag/odoo/addons/product_category_tag/README.rst @@ -0,0 +1,97 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + +==================== +Product Category Tag +==================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:92a41650b8c9a8edf39f61cedb5a9f33c3bf628cb24b58b85c7e99ec6d1eaac7 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/license-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/18.0/product_category_tag + :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-18-0/product-attribute-18-0-product_category_tag + :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/product-attribute&target_branch=18.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows you to tag product categories with custom tags. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +- Navigate to Inventoy > Configuration > Product Categories. +- Open the product category you want to tag. +- In the "Tags" tab, you can add or remove tags for that category. + +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 +------- + +* APSL-Nagarro + +Contributors +------------ + +`APSL-Nagarro `__: + +- Patryk Pyczko + +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-ppyczko| image:: https://github.com/ppyczko.png?size=40px + :target: https://github.com/ppyczko + :alt: ppyczko + +Current `maintainer `__: + +|maintainer-ppyczko| + +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/setup/product_category_tag/odoo/addons/product_category_tag/__init__.py b/setup/product_category_tag/odoo/addons/product_category_tag/__init__.py new file mode 100644 index 00000000000..0b8460dfec6 --- /dev/null +++ b/setup/product_category_tag/odoo/addons/product_category_tag/__init__.py @@ -0,0 +1,4 @@ +# Copyright 2025 Patryk Pyczko (APSL-Nagarro) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from . import models diff --git a/setup/product_category_tag/odoo/addons/product_category_tag/__manifest__.py b/setup/product_category_tag/odoo/addons/product_category_tag/__manifest__.py new file mode 100644 index 00000000000..7f0595f7a43 --- /dev/null +++ b/setup/product_category_tag/odoo/addons/product_category_tag/__manifest__.py @@ -0,0 +1,20 @@ +# Copyright 2025 Patryk Pyczko (APSL-Nagarro) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "Product Category Tag", + "version": "15.0.1.0.0", + "summary": "Add tags to product categories", + "website": "https://github.com/OCA/product-attribute", + "author": "APSL-Nagarro, Odoo Community Association (OCA)", + "maintainers": ["ppyczko"], + "license": "AGPL-3", + "application": False, + "installable": True, + "depends": ["product", "account", "stock"], + "data": [ + "security/ir.model.access.csv", + "views/product_category_tag_views.xml", + "views/product_category_views.xml", + ], +} diff --git a/setup/product_category_tag/odoo/addons/product_category_tag/i18n/es.po b/setup/product_category_tag/odoo/addons/product_category_tag/i18n/es.po new file mode 100644 index 00000000000..345a21c1e4e --- /dev/null +++ b/setup/product_category_tag/odoo/addons/product_category_tag/i18n/es.po @@ -0,0 +1,90 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_category_tag +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2025-06-30 11:01+0000\n" +"PO-Revision-Date: 2025-06-30 11:01+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: product_category_tag +#: model:ir.actions.act_window,name:product_category_tag.action_product_category_tag +#: model:ir.ui.menu,name:product_category_tag.menu_product_category_tag_root +#: model_terms:ir.ui.view,arch_db:product_category_tag.product_category_form_view +msgid "Category Tags" +msgstr "Etiquetas de categoría" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__color +msgid "Color" +msgstr "Color" + +#. module: product_category_tag +#: model_terms:ir.actions.act_window,help:product_category_tag.action_product_category_tag +msgid "Create new tags for your product categories." +msgstr "Crea nuevas etiquetas para tus categorías de producto." + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__create_uid +msgid "Created by" +msgstr "Creado por" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__create_date +msgid "Created on" +msgstr "Creado el" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__display_name +msgid "Display Name" +msgstr "Nombre mostrado" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__id +msgid "ID" +msgstr "ID" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__write_uid +msgid "Last Updated by" +msgstr "Última actualización por" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__write_date +msgid "Last Updated on" +msgstr "Última actualización el" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__name +msgid "Name" +msgstr "Nombre" + +#. module: product_category_tag +#: model:ir.model,name:product_category_tag.model_product_category +msgid "Product Category" +msgstr "Categoría de producto" + +#. module: product_category_tag +#: model:ir.model,name:product_category_tag.model_product_category_tag +msgid "Product Category Tag" +msgstr "Etiqueta de categoría de producto" + +#. module: product_category_tag +#: model:ir.model.constraint,message:product_category_tag.constraint_product_category_tag_category_tag_name_uniq +msgid "Tag name already exists!" +msgstr "¡El nombre de la etiqueta ya existe!" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category__tag_ids +#: model_terms:ir.ui.view,arch_db:product_category_tag.product_category_search_view +#: model_terms:ir.ui.view,arch_db:product_category_tag.view_product_category_tag_form +msgid "Tags" +msgstr "Etiquetas" diff --git a/setup/product_category_tag/odoo/addons/product_category_tag/i18n/fr.po b/setup/product_category_tag/odoo/addons/product_category_tag/i18n/fr.po new file mode 100644 index 00000000000..d3ba8180f89 --- /dev/null +++ b/setup/product_category_tag/odoo/addons/product_category_tag/i18n/fr.po @@ -0,0 +1,95 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_category_tag +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.0-20240924\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-02-19 08:39+0000\n" +"PO-Revision-Date: 2026-02-19 08:39+0000\n" +"Last-Translator: teicee \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_category_tag +#: model:ir.actions.act_window,name:product_category_tag.action_product_category_tag +#: model:ir.ui.menu,name:product_category_tag.menu_product_category_tag_root +#: model_terms:ir.ui.view,arch_db:product_category_tag.product_category_form_view +msgid "Category Tags" +msgstr "Tags de Catégorie" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__color +msgid "Color" +msgstr "Couleur" + +#. module: product_category_tag +#: model_terms:ir.actions.act_window,help:product_category_tag.action_product_category_tag +msgid "Create new tags for your product categories." +msgstr "Créer des nouveaux tags pour vos catégories d'articles" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__create_uid +msgid "Created by" +msgstr "Créé par" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__create_date +msgid "Created on" +msgstr "Créé le" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__display_name +msgid "Display Name" +msgstr "Nom d'affichage" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__id +msgid "ID" +msgstr "" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag____last_update +msgid "Last Modified on" +msgstr "Dernière modification le" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__write_uid +msgid "Last Updated by" +msgstr "Dernière mise à jour par" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__write_date +msgid "Last Updated on" +msgstr "Dernière mise à jour le" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__name +msgid "Name" +msgstr "Nom" + +#. module: product_category_tag +#: model:ir.model,name:product_category_tag.model_product_category +msgid "Product Category" +msgstr "Catégorie d'article" + +#. module: product_category_tag +#: model:ir.model,name:product_category_tag.model_product_category_tag +msgid "Product Category Tag" +msgstr "Tag de Catégorie d'article" + +#. module: product_category_tag +#: model:ir.model.constraint,message:product_category_tag.constraint_product_category_tag_category_tag_name_uniq +msgid "Tag name already exists!" +msgstr "Ce tag existe déjà!" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category__tag_ids +#: model_terms:ir.ui.view,arch_db:product_category_tag.product_category_search_view +#: model_terms:ir.ui.view,arch_db:product_category_tag.view_product_category_tag_form +msgid "Tags" +msgstr "" diff --git a/setup/product_category_tag/odoo/addons/product_category_tag/i18n/it.po b/setup/product_category_tag/odoo/addons/product_category_tag/i18n/it.po new file mode 100644 index 00000000000..8d0ca04e547 --- /dev/null +++ b/setup/product_category_tag/odoo/addons/product_category_tag/i18n/it.po @@ -0,0 +1,91 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_category_tag +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2025-07-23 14:25+0000\n" +"Last-Translator: mymage \n" +"Language-Team: none\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" +"X-Generator: Weblate 5.10.4\n" + +#. module: product_category_tag +#: model:ir.actions.act_window,name:product_category_tag.action_product_category_tag +#: model:ir.ui.menu,name:product_category_tag.menu_product_category_tag_root +#: model_terms:ir.ui.view,arch_db:product_category_tag.product_category_form_view +msgid "Category Tags" +msgstr "Etichette categoria" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__color +msgid "Color" +msgstr "Colore" + +#. module: product_category_tag +#: model_terms:ir.actions.act_window,help:product_category_tag.action_product_category_tag +msgid "Create new tags for your product categories." +msgstr "Crea nuove etichette per le categorie prodotto." + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__create_uid +msgid "Created by" +msgstr "Creato da" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__create_date +msgid "Created on" +msgstr "Creato il" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__display_name +msgid "Display Name" +msgstr "Nome visualizzato" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__id +msgid "ID" +msgstr "ID" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__write_uid +msgid "Last Updated by" +msgstr "Ultimo aggiornamento di" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__write_date +msgid "Last Updated on" +msgstr "Ultimo aggiornamento il" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__name +msgid "Name" +msgstr "Nome" + +#. module: product_category_tag +#: model:ir.model,name:product_category_tag.model_product_category +msgid "Product Category" +msgstr "Categoria prodotto" + +#. module: product_category_tag +#: model:ir.model,name:product_category_tag.model_product_category_tag +msgid "Product Category Tag" +msgstr "Etichetta categoria prodotto" + +#. module: product_category_tag +#: model:ir.model.constraint,message:product_category_tag.constraint_product_category_tag_category_tag_name_uniq +msgid "Tag name already exists!" +msgstr "Il nome dell'etichetta esiste già!" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category__tag_ids +#: model_terms:ir.ui.view,arch_db:product_category_tag.product_category_search_view +#: model_terms:ir.ui.view,arch_db:product_category_tag.view_product_category_tag_form +msgid "Tags" +msgstr "Etichette" diff --git a/setup/product_category_tag/odoo/addons/product_category_tag/i18n/product_category_tag.pot b/setup/product_category_tag/odoo/addons/product_category_tag/i18n/product_category_tag.pot new file mode 100644 index 00000000000..f522020c19d --- /dev/null +++ b/setup/product_category_tag/odoo/addons/product_category_tag/i18n/product_category_tag.pot @@ -0,0 +1,88 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_category_tag +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.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_category_tag +#: model:ir.actions.act_window,name:product_category_tag.action_product_category_tag +#: model:ir.ui.menu,name:product_category_tag.menu_product_category_tag_root +#: model_terms:ir.ui.view,arch_db:product_category_tag.product_category_form_view +msgid "Category Tags" +msgstr "" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__color +msgid "Color" +msgstr "" + +#. module: product_category_tag +#: model_terms:ir.actions.act_window,help:product_category_tag.action_product_category_tag +msgid "Create new tags for your product categories." +msgstr "" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__create_uid +msgid "Created by" +msgstr "" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__create_date +msgid "Created on" +msgstr "" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__display_name +msgid "Display Name" +msgstr "" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__id +msgid "ID" +msgstr "" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__write_date +msgid "Last Updated on" +msgstr "" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category_tag__name +msgid "Name" +msgstr "" + +#. module: product_category_tag +#: model:ir.model,name:product_category_tag.model_product_category +msgid "Product Category" +msgstr "" + +#. module: product_category_tag +#: model:ir.model,name:product_category_tag.model_product_category_tag +msgid "Product Category Tag" +msgstr "" + +#. module: product_category_tag +#: model:ir.model.constraint,message:product_category_tag.constraint_product_category_tag_category_tag_name_uniq +msgid "Tag name already exists!" +msgstr "" + +#. module: product_category_tag +#: model:ir.model.fields,field_description:product_category_tag.field_product_category__tag_ids +#: model_terms:ir.ui.view,arch_db:product_category_tag.product_category_search_view +#: model_terms:ir.ui.view,arch_db:product_category_tag.view_product_category_tag_form +msgid "Tags" +msgstr "" diff --git a/setup/product_category_tag/odoo/addons/product_category_tag/models/__init__.py b/setup/product_category_tag/odoo/addons/product_category_tag/models/__init__.py new file mode 100644 index 00000000000..6f6366bb5fb --- /dev/null +++ b/setup/product_category_tag/odoo/addons/product_category_tag/models/__init__.py @@ -0,0 +1,5 @@ +# Copyright 2025 Patryk Pyczko (APSL-Nagarro) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from . import product_category_tag +from . import product_category diff --git a/setup/product_category_tag/odoo/addons/product_category_tag/models/product_category.py b/setup/product_category_tag/odoo/addons/product_category_tag/models/product_category.py new file mode 100644 index 00000000000..5cddd254f08 --- /dev/null +++ b/setup/product_category_tag/odoo/addons/product_category_tag/models/product_category.py @@ -0,0 +1,16 @@ +# Copyright 2025 Patryk Pyczko (APSL-Nagarro) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class ProductCategory(models.Model): + _inherit = "product.category" + + tag_ids = fields.Many2many( + comodel_name="product.category.tag", + relation="product_category_tag_rel", + column1="category_id", + column2="tag_id", + string="Tags", + ) diff --git a/setup/product_category_tag/odoo/addons/product_category_tag/models/product_category_tag.py b/setup/product_category_tag/odoo/addons/product_category_tag/models/product_category_tag.py new file mode 100644 index 00000000000..8a187a13317 --- /dev/null +++ b/setup/product_category_tag/odoo/addons/product_category_tag/models/product_category_tag.py @@ -0,0 +1,22 @@ +# Copyright 2025 Patryk Pyczko (APSL-Nagarro) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from random import randint + +from odoo import fields, models + + +class ProductCategoryTag(models.Model): + _name = "product.category.tag" + _description = "Product Category Tag" + + name = fields.Char(required=True, translate=True) + + def _get_default_color(self): + return randint(1, 11) + + color = fields.Integer(default=lambda self: self._get_default_color()) + + _sql_constraints = [ + ("category_tag_name_uniq", "unique (name)", "Tag name already exists!"), + ] diff --git a/setup/product_category_tag/odoo/addons/product_category_tag/pyproject.toml b/setup/product_category_tag/odoo/addons/product_category_tag/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/setup/product_category_tag/odoo/addons/product_category_tag/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/setup/product_category_tag/odoo/addons/product_category_tag/readme/CONTRIBUTORS.md b/setup/product_category_tag/odoo/addons/product_category_tag/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..082d126e6ce --- /dev/null +++ b/setup/product_category_tag/odoo/addons/product_category_tag/readme/CONTRIBUTORS.md @@ -0,0 +1,2 @@ + [APSL-Nagarro](https://www.apsl.tech): + - Patryk Pyczko \<\> diff --git a/setup/product_category_tag/odoo/addons/product_category_tag/readme/DESCRIPTION.md b/setup/product_category_tag/odoo/addons/product_category_tag/readme/DESCRIPTION.md new file mode 100644 index 00000000000..96cea8b7f6b --- /dev/null +++ b/setup/product_category_tag/odoo/addons/product_category_tag/readme/DESCRIPTION.md @@ -0,0 +1 @@ +This module allows you to tag product categories with custom tags. diff --git a/setup/product_category_tag/odoo/addons/product_category_tag/readme/USAGE.md b/setup/product_category_tag/odoo/addons/product_category_tag/readme/USAGE.md new file mode 100644 index 00000000000..48576484567 --- /dev/null +++ b/setup/product_category_tag/odoo/addons/product_category_tag/readme/USAGE.md @@ -0,0 +1,3 @@ +- Navigate to Inventoy > Configuration > Product Categories. +- Open the product category you want to tag. +- In the "Tags" tab, you can add or remove tags for that category. diff --git a/setup/product_category_tag/odoo/addons/product_category_tag/security/ir.model.access.csv b/setup/product_category_tag/odoo/addons/product_category_tag/security/ir.model.access.csv new file mode 100644 index 00000000000..f001898ceb1 --- /dev/null +++ b/setup/product_category_tag/odoo/addons/product_category_tag/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_product_category_tag,access_product_category_tag,model_product_category_tag,base.group_user,1,1,1,1 diff --git a/setup/product_category_tag/odoo/addons/product_category_tag/static/description/icon.png b/setup/product_category_tag/odoo/addons/product_category_tag/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/setup/product_category_tag/odoo/addons/product_category_tag/static/description/icon.png differ diff --git a/setup/product_category_tag/odoo/addons/product_category_tag/static/description/index.html b/setup/product_category_tag/odoo/addons/product_category_tag/static/description/index.html new file mode 100644 index 00000000000..dbea45fd993 --- /dev/null +++ b/setup/product_category_tag/odoo/addons/product_category_tag/static/description/index.html @@ -0,0 +1,441 @@ + + + + + +README.rst + + + +
+ + + +Odoo Community Association + +
+

Product Category Tag

+ +

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

+

This module allows you to tag product categories with custom tags.

+

Table of contents

+ +
+

Usage

+
    +
  • Navigate to Inventoy > Configuration > Product Categories.
  • +
  • Open the product category you want to tag.
  • +
  • In the “Tags” tab, you can add or remove tags for that category.
  • +
+
+
+

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

+
    +
  • APSL-Nagarro
  • +
+
+
+

Contributors

+

APSL-Nagarro:

+ +
+
+

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:

+

ppyczko

+

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/setup/product_category_tag/odoo/addons/product_category_tag/views/product_category_tag_views.xml b/setup/product_category_tag/odoo/addons/product_category_tag/views/product_category_tag_views.xml new file mode 100644 index 00000000000..6229ec9d1e6 --- /dev/null +++ b/setup/product_category_tag/odoo/addons/product_category_tag/views/product_category_tag_views.xml @@ -0,0 +1,58 @@ + + + + + product.category.tag.tree + product.category.tag + + + + + + + + + + product.category.tag.form + product.category.tag + +
+ +
+
+
+

+ +

+
+ + + + + +
+
+
+
+ + + Category Tags + product.category.tag + tree,form + +

+ Create new tags for your product categories. +

+
+
+ + +
diff --git a/setup/product_category_tag/odoo/addons/product_category_tag/views/product_category_views.xml b/setup/product_category_tag/odoo/addons/product_category_tag/views/product_category_views.xml new file mode 100644 index 00000000000..be282822d3a --- /dev/null +++ b/setup/product_category_tag/odoo/addons/product_category_tag/views/product_category_views.xml @@ -0,0 +1,58 @@ + + + + + product.category.tree.inherit.tags + product.category + + + + + + + + + + product.category.form.inherit.tags + product.category + + + + + + + + + + + + product.category.search.inherit.tags + product.category + + + + + + + + + diff --git a/setup/product_category_tag/setup.py b/setup/product_category_tag/setup.py new file mode 100644 index 00000000000..28c57bb6403 --- /dev/null +++ b/setup/product_category_tag/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)