This question has been flagged

Hello Community,

Is there a way to search within a related one2many fields , for example in the products search view i want to get products with combined attribute (e.g color=red, height = 2m), I've added filters to the search view:            

<field name="product_attributes_ids" string="Product Color" filter_domain="[('product_attributes_ids.color','ilike',self)]"/>

<field name="product_attributes_ids" string="Product Height" filter_domain="[('product_attributes_ids.height','ilike',self)]"/>

but when searching i get values that did not supposed to appear , Odoo seem to not search in the product attributes with combined values , is this operation possible , is there a workaround to deal with this kind of operation ?


Avatar
Discard
Best Answer

Hello

I'm having the same problem, you find any solution? 

Sorry for my English. Thank you

Avatar
Discard
Best Answer

Sorry, i did not read question exactly. My answer is wrong in this case. However, it can be useful in other cases.


If you need AND in search view separe both filters with tag <separator/>

Avatar
Discard