Permalink
Browse files

🚑 fix filter_domain

  • Loading branch information...
trojikman committed Oct 25, 2018
1 parent 08908fd commit 984ff88ea549a176c78cbebb9cb71507559ff5c0
@@ -11,4 +11,4 @@ Installation
Usage
=====
This module allows you to add tags in products like it's done for the partners.
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.parent_id','ilike',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>
View
Binary file not shown.

0 comments on commit 984ff88

Please sign in to comment.