In product template search view is defined a field to do search by product attributes:
<field string="Product Variant" name="product_variant_ids" filter_domain="['|', ('product_variant_ids.name','ilike',self), ('product_variant_ids.attribute_value_ids.name','ilike',self)]"/>
product_variants_ids is a one2many field in product.template. When I write some attribute value, it brings the correct record, but when I write the atrribute name, it brings nothing, for example, in attribute page for some product I have:
MEMORY 32gb
COLOR red
If I type 32gb, it brings record, whereas if I type MEMORY, brings nothing
Can any one help me? I would also like to understand filter_domain of this example.
Thanks!!