5 <record model ="ir.ui.view" id="report_event_registration_graph">
6 <field name="name">report.event.registration.graph</field>
7 <field name="model">report.event.registration</field>
8 <field name="arch" type="xml">
9 <graph string="Event on Registration" type="pivot" >
10 <field name="event_type" type="row"/>
11 <field name="event_date" interval="month" type="col"/>
12 <field name="confirm_state" type="measure"/>
17 <!-- Event on Registration search view -->
18 <record model="ir.ui.view" id="view_report_event_registration_search">
19 <field name="name">report.event.registration.search</field>
20 <field name="model">report.event.registration</field>
21 <field name="arch" type="xml">
22 <search string="Event on Registration">
23 <filter string="New" domain="[('event_state','=','draft')]" help="Events which are in New state"/>
24 <filter string="Confirm" domain="[('event_state','=','confirm')]" help="Events which are in confirm state"/>
26 <filter string="My Events" help="My Events" domain="[('user_id','=',uid)]"/>
27 <field name="event_id" string="Event"/>
28 <field name="user_id"/>
29 <group expand="0" string="Extended Filters...">
30 <field name="event_type" widget="selection"/>
31 <field name="event_date"/>
34 <group expand="1" string="Group By">
35 <filter string="Participant" context="{'group_by':'name_registration'}" help="Registration contact"/>
36 <filter string="Event Type" context="{'group_by':'event_type'}"/>
37 <filter string="Event" name="event" context="{'group_by':'event_id', 'max_reg_event_visible':0}"/>
38 <filter string="Event State" context="{'group_by':'event_state'}"/>
39 <filter string="Company" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
41 <filter string="Event Month" context="{'group_by':'event_date:month'}" help="Event Beginning Date"/>
43 <group expand="0" string="Display">
44 <filter string="Show Confirmed Registrations" domain="[('event_state','<>','draft')]"
45 help="Registrations in confirmed or done state" context="{'no_of_draft_invisible':1}"/>
51 <record model="ir.actions.act_window" id="action_report_event_registration">
52 <field name="name">Events Analysis</field>
53 <field name="res_model">report.event.registration</field>
54 <field name="view_type">form</field>
55 <field name="view_mode">graph</field>
56 <field name="search_view_id" ref="view_report_event_registration_search"/>
57 <field name="context">{"group_by_no_leaf":1, "group_by":[]}</field>
60 <record model="ir.actions.act_window.view" id="action_report_event_registration_graph">
61 <field name="sequence" eval="2"/>
62 <field name="view_mode">graph</field>
63 <field name="view_id" ref="report_event_registration_graph"/>
64 <field name="act_window_id" ref="action_report_event_registration"/>
67 <menuitem parent="base.menu_reporting" id="menu_reporting_events" sequence="50" groups="event.group_event_manager" name="Events"/>
68 <menuitem parent="menu_reporting_events" action="action_report_event_registration" id="menu_report_event_registration" sequence="3" groups="event.group_event_manager"/>