<?xml version="1.0"?>
<search string="Product">
                <field name="name" string="Product" filter_domain="['|', '|', '|', ('default_code', 'ilike', self), ('product_variant_ids.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_tag_ids" string="Tags"/>
                <separator/>
                <filter string="Services" name="services" domain="[('type','=','service')]"/>
                <filter string="Goods" name="goods" domain="[('type', '=', 'consu')]"/>
                <filter string="Combo" name="combo" domain="[('type', '=', 'combo')]"/>
                <separator/>
                <filter string="Sales" name="filter_to_sell" domain="[('sale_ok','=',True)]"/>
                <filter string="Purchase" name="filter_to_purchase" domain="[('purchase_ok', '=', True)]"/>
                <separator/>
                <field string="Attributes" name="attribute_line_ids" groups="product.group_product_variant"/>
                <filter invisible="1" string="My Activities" name="filter_activities_my" domain="[('activity_user_id', '=', uid)]"/>
                <separator invisible="1"/>
                <filter invisible="1" string="Late Activities" name="activities_overdue" domain="[('activity_date_deadline', '&lt;', context_today().strftime('%Y-%m-%d'))]" help="Show all records whose next activity date is past"/>
                <filter invisible="1" string="Today Activities" name="activities_today" domain="[('activity_date_deadline', '=', context_today().strftime('%Y-%m-%d'))]"/>
                <filter invisible="1" string="Future Activities" name="activities_upcoming_all" domain="[('activity_date_deadline', '&gt;', context_today().strftime('%Y-%m-%d'))                     ]"/>
                <separator/>
                <filter string="Favorites" name="favorites" domain="[('is_favorite', '=', True)]"/>
                <separator/>
                <filter string="Warnings" name="activities_exception" domain="[('activity_exception_decoration', '!=', False)]"/>
                <separator/>
                <filter string="Archived" name="inactive" domain="[('active','=',False)]"/>
                <group expand="1" string="Group By">
                    <filter string="Product Type" name="group_by_type" context="{'group_by':'type'}"/>
                    <filter string="Product Category" name="group_by_categ_id" context="{'group_by':'categ_id'}"/>
                    <filter string="Product Properties" name="group_by_product_properties" context="{'group_by': 'product_properties'}"/>
                </group>
            </search>
        