Skip to content

[15.0][6429][ADD] product_tag#262

Open
AungKoKoLin1997 wants to merge 7 commits into
15.0from
15.0-add-product_tag
Open

[15.0][6429][ADD] product_tag#262
AungKoKoLin1997 wants to merge 7 commits into
15.0from
15.0-add-product_tag

Conversation

@AungKoKoLin1997

@AungKoKoLin1997 AungKoKoLin1997 commented May 7, 2026

Copy link
Copy Markdown
Contributor

Comment thread product_tag/views/product_views.xml Outdated
Comment on lines +9 to +11
<attribute
name="options"
>{'no_open': True, 'color_field': 'color'}</attribute>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reason we make this adjustment here instead of the template form?

@AungKoKoLin1997 AungKoKoLin1997 May 13, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realized there is no no_open option for the many2many_tags widget even I found there is some usage in odoo standard code. But, I found we can't open the records in many2many_tags. So, I removed this option completely.
https://www.odoo.com/documentation/15.0/developer/reference/frontend/javascript_reference.html

Comment thread product_tag/views/product_tag_views.xml Outdated
@AungKoKoLin1997 AungKoKoLin1997 force-pushed the 15.0-add-product_tag branch 2 times, most recently from f3c43cb to a4cbb67 Compare May 13, 2026 01:45

@smorita7749 smorita7749 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code, functional review: LGTM

Comment thread product_tag/models/product_tag.py Outdated
@@ -0,0 +1,23 @@
# Part of Odoo.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not part of Odoo.

Suggested change
# Part of Odoo.
# Copyright Odoo S.A.
# Copyright 2026 Quartile (https://www.quartile.co)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update all related parts.

@@ -0,0 +1,2 @@
This module backports the `product.tag` model from Odoo 16, allowing
products to be classified with tags in Odoo 15.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
products to be classified with tags in Odoo 15.
products to be classified with tags in Odoo 15.
Unlike the original Odoo 16 design, the implementation has been simplified: tags can
only be assigned at the product template (`product.template`) level, and not at the
product variant (`product.product`) level.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants