<?xml version="1.0"?>
<search string="Search Visitor">
                <field name="name"/>
                <field name="lang_id"/>
                <field name="country_id"/>
                <field name="visit_count"/>
                <field name="page_ids"/>
                <filter string="Last 7 Days" name="filter_last_7_days" domain="[('last_connection_datetime', '&gt;', datetime.datetime.now() - datetime.timedelta(days=7))]"/>
                <separator/>
                <filter string="Unregistered" name="filter_type_visitor" domain="[('partner_id', '=', False)]"/>
                <filter string="Contacts" name="filter_type_customer" domain="[('partner_id', '!=', False)]"/>
                <separator/>
                <filter string="Connected" name="filter_is_connected" domain="[('last_connection_datetime', '&gt;', datetime.datetime.now() - datetime.timedelta(minutes=5))]"/>
                <separator/>
                <group string="Group By">
                    <filter string="Country" name="group_by_country" context="{'group_by': 'country_id'}"/>
                    <filter string="Timezone" name="group_by_timezone" context="{'group_by': 'timezone'}"/>
                    <filter string="Language" name="group_by_lang" context="{'group_by': 'lang_id'}"/>
                    <filter string="# Visits" name="group_by_visit_count" context="{'group_by': 'visit_count'}"/>
                    <filter string="Website" name="group_by_website_id" context="{'group_by': 'website_id'}" groups="website.group_multi_website"/>
                    <filter string="First Connection" name="group_by_create_date" context="{'group_by': 'create_date'}"/>
                    <filter string="Last Connection" name="group_by_last_connection_datetime" context="{'group_by': 'last_connection_datetime'}"/>
                </group>
            </search>
        