[IMP] website_sale: product tags - list view

This commit adds the possibility to change the product tag color on a product and also to edit those tags from a submenu of the ecommerce.

task_id=2904805

closes odoo/odoo#100717

Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
This commit is contained in:
Alexandre de Pape (alpa)
2022-10-06 00:36:46 +02:00
parent 2db3787473
commit 2cfa76e0c3
3 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -88,7 +88,7 @@
</span>
</div>
<field name="categ_id" string="Product Category"/>
<field name="product_tag_ids" widget="many2many_tags" options="{'color_field': 'color', 'no_edit_color': 1}"/>
<field name="product_tag_ids" widget="many2many_tags" options="{'color_field': 'color'}"/>
<field name="company_id" groups="base.group_multi_company"
options="{'no_create': True}"/>
<field name="currency_id" invisible="1"/>
@@ -21,4 +21,11 @@
</field>
</field>
</record>
<record id="product_public_tags_action" model="ir.actions.act_window">
<field name="name">Product Tags</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">product.tag</field>
<field name="view_mode">tree,form</field>
<field name="view_id" eval="False"/>
</record>
</odoo>
@@ -227,6 +227,12 @@
<menuitem id="menu_product_attribute_action"
action="product.attribute_action"
parent="menu_catalog" groups="product.group_product_variant" sequence="5"/>
<menuitem id="product_catalog_product_tags"
name="Product Tags"
action="product_public_tags_action"
parent="menu_catalog"
groups="base.group_no_one"
/>
<!-- Reporting sub-menus -->
<menuitem id="menu_report_sales" name="Online Sales"