<?xml version="1.0"?>
<search string="Activity">
                <field name="res_name" string="Name" filter_domain="[                     '|',                         ('res_name', 'ilike', self),                         ('summary', 'ilike', self),                 ]"/>
                <field name="user_id"/>
                <field name="activity_type_id"/>
                <filter name="filter_user_id_uid" string="My Activities" domain="[('user_id', '=', uid)]"/>
                <filter name="filter_user_id_no_user" string="Unassigned Activities" domain="[('user_id', '=', False)]"/>
                <separator/>
                <separator invisible="1"/>
                <filter string="Overdue" name="filter_date_deadline_past" domain="[('date_deadline', '&lt;', context_today().strftime('%Y-%m-%d'))]" help="Show all records whose next activity date is past"/>
                <filter string="Today" name="filter_date_deadline_today" domain="[('date_deadline', '=', context_today().strftime('%Y-%m-%d'))]"/>
                <filter string="Tomorrow" name="filter_date_deadline_tomorrow" help="Show all records whose next action date is tomorrow" domain="[('date_deadline', '=', (context_today() + relativedelta(days=1)).strftime('%Y-%m-%d'))]"/>
                <filter string="This week" name="filter_date_deadline_week" help="Show all records whose next action date is this week" domain="[                             ('date_deadline', '&gt;=', (context_today() + relativedelta(weeks=-1,days=1,weekday=0)).strftime('%Y-%m-%d')),                             ('date_deadline', '&lt;=', (context_today() + relativedelta(weekday=6)).strftime('%Y-%m-%d')                         )]"/>
                <filter string="Future" name="filter_date_deadline_future" domain="[('date_deadline', '&gt;', context_today().strftime('%Y-%m-%d'))                         ]"/>
                <separator/>
                <filter string="Done" name="filter_archived" domain="[('active', '=', False)]"/>
                <separator/>
                <group expand="0" string="Group By">
                    <filter string="Deadline" name="date_deadline" context="{'group_by': 'date_deadline'}"/>
                    <filter string="Document Model" name="group_by_res_model_id" context="{'group_by': 'res_model_id'}"/>
                    <filter string="Assigned To" name="group_by_user_id" context="{'group_by': 'user_id'}"/>
                    <filter string="Created By" name="createdby" context="{'group_by': 'create_uid'}"/>
                    <filter string="Activity Type" name="activittype" context="{'group_by': 'activity_type_id'}"/>
                </group>
            </search>
        