Permalink
Browse files

🚑 can't use child_of operator with many2many fields (#670)

  • Loading branch information...
trojikman authored and yelizariev committed Oct 26, 2018
1 parent 4b60a2e commit cdd1bf638478bde1e994f69fba16772a223ba0f1
@@ -22,7 +22,7 @@
{
"name": "Product Tags",
"version": "1.0",
"version": "10.0.1.0.1",
"author": "Julius Network Solutions",
"website": "http://julius.fr",
"category": "Sales Management",
@@ -0,0 +1,8 @@
`1.0.1`
- **Fix:** issue with search for non-existent tags
`1.0.0`
-------
- **Init version**
@@ -0,0 +1,14 @@
==============
Product Tags
==============
Installation
============
* `Install <https://odoo-development.readthedocs.io/en/latest/odoo/usage/install-module.html>`__ this module in a usual way
Usage
=====
After installing this module, you will be able to create and add tags for new and existing products.
@@ -24,7 +24,7 @@
<field name="model">product.tag</field>
<field name="field_parent">child_ids</field>
<field name="arch" type="xml">
<tree toolbar="1" string="Product Tags">
<tree toolbar="1" >
<field name="display_name"/>
</tree>
</field>
@@ -35,7 +35,7 @@
<field name="model">product.tag</field>
<field eval="6" name="priority"/>
<field name="arch" type="xml">
<tree string="Product Tags">
<tree>
<field name="display_name"/>
</tree>
</field>
@@ -70,7 +70,7 @@
<field name="inherit_id" ref="product.product_template_search_view"/>
<field name="arch" type="xml">
<field name="name" position="after">
<field name="tag_ids" string="Tags" filter_domain="['|',('tag_ids','ilike',self),('tag_ids','child_of',self)]"/>
<field name="tag_ids" string="Tags" filter_domain="['|','|',('tag_ids','ilike',self),('tag_ids.parent_id','ilike',self),('tag_ids.parent_id','child_of',self)]"/>
</field>
</field>
</record>
Binary file not shown.

0 comments on commit cdd1bf6

Please sign in to comment.