<?xml version="1.0"?>
<search string="Event Sales Analysis">
                <field name="event_id"/>
                <field name="event_registration_name" string="Participant"/>
                <field name="sale_order_partner_id" string="Booked by"/>
                <field name="company_id"/>
                <filter string="Non-free tickets" name="priced_tickets" domain="[('event_ticket_price', '!=', 0)]"/>
                <separator/>
                <filter string="Free" name="free" domain="[('sale_status', '=', 'free')]"/>
                <filter string="Pending payment" name="payment_pending" domain="[('sale_status', '=', 'to_pay')]"/>
                <filter string="Sold" name="is_sold" domain="[('sale_status', '=', 'sold')]"/>
                <separator/>
                <filter string="Registration Date" name="event_registration_create_date" date="event_registration_create_date" default_period="year"/>
                <separator/>
                <filter string="Upcoming/Running" name="upcoming" help="Upcoming events from today" domain="[('event_date_end', '&gt;=', datetime.datetime.combine(context_today(), datetime.time(0,0,0)))]"/>
                <filter string="Past Events" name="past" help="Events that have ended" domain="[('event_date_end', '&lt;', datetime.datetime.combine(context_today(), datetime.time(0,0,0)))]"/>
                <filter string="Event Start Date" name="event_date_start" date="event_date_begin" default_period="year"/>
                <filter string="Event End Date" name="event_date_end" date="event_date_end"/>
                <group expand="0" string="Group By">
                    <filter string="Event Type" name="group_by_event_type_id" context="{'group_by': 'event_type_id' }"/>
                    <filter string="Event" name="group_by_event_id" context="{'group_by': 'event_id' }"/>
                    <separator/>
                    <filter string="Product" name="group_by_product_id" context="{'group_by': 'product_id'}"/>
                    <filter string="Slot" name="group_by_slot_id" context="{'group_by': 'event_slot_id'}"/>
                    <filter string="Ticket" name="group_by_ticket_id" context="{'group_by': 'event_ticket_id'}"/>
                    <separator/>
                    <filter string="Registration Status" name="group_by_registration_state" context="{'group_by': 'event_registration_state'}"/>
                    <filter string="Sale Order Status" name="group_by_sale_order_state" context="{'group_by': 'sale_order_state'}"/>
                    <filter string="Customer" name="group_by_customer" context="{'group_by': 'sale_order_partner_id'}"/>
                </group>
            </search>
        