<?xml version="1.0"?>
<search string="Tasks">
                <field name="name" string="Task"/>
                <field name="tag_ids"/>
                <field name="portal_user_names" string="Assignees"/>
                <field string="Project" name="display_project_id"/>
                <field name="milestone_id" groups="project.group_project_milestone"/>
                <field name="stage_id"/>
                <field name="partner_id" operator="child_of"/>
                <filter string="Unassigned" name="unassigned" domain="[('user_ids', '=', False)]"/>
                <separator/>
                <filter string="High Priority" name="high_priority" domain="[('priority', '=', 1)]"/>
                <filter string="Low Priority" name="low_priority" domain="[('priority', '=', 0)]"/>
                <separator/>
                <filter string="Late Tasks" name="late" domain="[('date_deadline', '&lt;', context_today().strftime('%Y-%m-%d')), ('is_closed', '=', False)]"/>
                <filter string="Tasks Due Today" name="tasks_due_today" domain="[('date_deadline', '=', context_today().strftime('%Y-%m-%d'))]"/>
                <filter string="Late Milestones" name="late_milestone" domain="[('is_closed', '=', False), ('has_late_and_unreached_milestone', '=', True)]" groups="project.group_project_milestone"/>
                <separator/>
                <filter string="Open Tasks" name="open_tasks" domain="[('is_closed', '=', False)]"/>
                <filter string="Closed Tasks" name="closed_tasks" domain="[('is_closed', '=', True)]"/>
                <filter string="Closed Last 7 Days" name="closed_last_7_days" domain="[('is_closed', '=', True), ('date_last_stage_update', '&gt;', datetime.datetime.now() - relativedelta(days=7))]"/>
                <filter string="Closed Last 30 Days" name="closed_last_30_days" domain="[('is_closed', '=', True), ('date_last_stage_update', '&gt;', datetime.datetime.now() - relativedelta(days=30))]"/>
                <separator/>
                <filter invisible="1" string="Today Activities" name="activities_today" domain="[('activity_ids.date_deadline', '=', context_today().strftime('%Y-%m-%d'))]"/>
                <filter invisible="1" string="Future Activities" name="activities_upcoming_all" domain="[('activity_ids.date_deadline', '&gt;', context_today().strftime('%Y-%m-%d'))]"/>
                <group expand="0" string="Group By">
                    <filter string="Stage" name="stage" context="{'group_by': 'stage_id'}"/>
                    <filter string="Milestone" name="milestone" context="{'group_by': 'milestone_id'}" groups="project.group_project_milestone"/>
                    <filter string="Customer" name="customer" context="{'group_by': 'partner_id'}"/>
                    <filter string="Kanban State" name="kanban_state" context="{'group_by': 'kanban_state'}"/>
                    <filter string="Deadline" name="date_deadline" context="{'group_by': 'date_deadline'}"/>
                </group>
            </search>
        