<?xml version="1.0"?>
<search string="Product">
                <!-- Search field -->
                <field name="name" string="Product" filter_domain="['|', '|', ('default_code', 'ilike', self), ('name', 'ilike', self), ('barcode', 'ilike', self)]"/>
                <field name="categ_id" filter_domain="[('categ_id', 'child_of', raw_value)]"/>
                <field name="product_template_attribute_value_ids" groups="product.group_product_variant"/>
                <field name="product_tmpl_id" string="Product Template"/>
                <!-- Filter -->
                <filter string="Favorites" name="favorites" domain="[('is_favorite', '=', True)]"/>
                <separator/>
                <filter string="Services" name="services" domain="[('type', '=', 'service')]"/>
                <filter string="Goods" name="goods" domain="[('type', '=', 'consu')]"/>
                <!-- Group By -->
                <group expand="1" string="Group By">
                    <filter string="Product Type" name="type" context="{'group_by':'type'}"/>
                    <filter string="Product Category" name="categ_id" context="{'group_by':'categ_id'}"/>
                </group>
                <!-- searchpanel -->
                <searchpanel>
                    <field name="categ_id" string="Product Category" icon="fa-th-list"/>
                    <field name="product_template_attribute_value_ids" string="Attributes" icon="fa-th-list" domain="[('ptav_active', '=', True), ('product_tmpl_id.active', '=', True)]" enable_counters="1" select="multi"/>
                </searchpanel>
            </search>
        