[FIX] product: fix search view to search on attribute name.
Searching 'memory' doesn't work before...
This commit is contained in:
parent
d780014248
commit
42aa9096d9
|
@ -16,7 +16,7 @@
|
||||||
<separator/>
|
<separator/>
|
||||||
<filter string="Can be Sold" name="filter_to_sell" icon="terp-accessories-archiver-minus" domain="[('sale_ok','=',1)]"/>
|
<filter string="Can be Sold" name="filter_to_sell" icon="terp-accessories-archiver-minus" domain="[('sale_ok','=',1)]"/>
|
||||||
<field name="categ_id" filter_domain="[('categ_id', 'child_of', self)]"/>
|
<field name="categ_id" filter_domain="[('categ_id', 'child_of', self)]"/>
|
||||||
<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)]"/>
|
<field string="Product Variant" name="product_variant_ids" filter_domain="['|', ('product_variant_ids.name','ilike',self), ('product_variant_ids.attribute_value_ids.attribute_id.name','ilike',self)]"/>
|
||||||
<field name="company_id"/>
|
<field name="company_id"/>
|
||||||
<field name="pricelist_id" widget="selection" context="{'pricelist': self}" filter_domain="[]" groups="product.group_sale_pricelist"/> <!-- Keep widget=selection on this field to pass numeric `self` value, which is not the case for regular m2o widgets! -->
|
<field name="pricelist_id" widget="selection" context="{'pricelist': self}" filter_domain="[]" groups="product.group_sale_pricelist"/> <!-- Keep widget=selection on this field to pass numeric `self` value, which is not the case for regular m2o widgets! -->
|
||||||
<group expand='0' string='Group by...'>
|
<group expand='0' string='Group by...'>
|
||||||
|
|
Loading…
Reference in New Issue