[FIX] correct various date issues in reporting
[odoo/odoo.git] / addons / event / report / report_event_registration_view.xml
1 <?xml version="1.0"?>
2 <openerp>
3     <data>
4
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="nbevent" type="measure"/>
13                     <field name="confirm_state" type="measure"/>
14                 </graph>
15             </field>
16         </record>
17
18         <!-- Event on Registration search view -->
19         <record model="ir.ui.view" id="view_report_event_registration_search">
20             <field name="name">report.event.registration.search</field>
21             <field name="model">report.event.registration</field>
22             <field name="arch" type="xml">
23                 <search string="Event on Registration">
24                     <filter icon="terp-document-new" string="New" domain="[('event_state','=','draft')]" help="Events which are in New state"/>
25                     <filter icon="terp-check" string="Confirm" domain="[('event_state','=','confirm')]" help="Events which are in confirm state"/>
26                     <separator/>
27                     <filter icon="terp-personal" string="My Events" help="My Events" domain="[('user_id','=',uid)]"/>
28                     <field name="event_id" string="Event"/>
29                     <field name="user_id"/>
30                     <group expand="0" string="Extended Filters...">
31                         <field name="event_type" widget="selection"/>
32                         <field name="event_date"/>
33                     </group>
34                     <newline/>
35                     <group expand="1" string="Group By">
36                         <filter string="Participant / Contact" icon="terp-personal" context="{'group_by':'name_registration'}" help="Registration contact"/>
37                         <filter string="Register" icon="terp-personal" context="{'group_by':'user_id_registration'}" help="Registration contact" groups="base.group_no_one"/>
38                         <filter string="Event Responsible" name="user_id" icon="terp-personal" context="{'group_by': 'user_id'}"/>
39                         <filter string="Event" name="event" icon="terp-crm" context="{'group_by':'event_id', 'max_reg_event_visible':0}"/>
40                         <filter string="Event Type" icon="terp-crm"  context="{'group_by':'event_type'}"/>
41                         <filter string="Event State" icon="terp-stock_effects-object-colorize" context="{'group_by':'event_state'}"/>
42                         <filter string="Registration State" icon="terp-stock_effects-object-colorize" context="{'group_by':'registration_state'}"/>
43                         <filter string="Company" icon="terp-go-home" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
44                         <filter string="Event Date" domain="[]" context="{'group_by':'event_date'}" help="Event Beginning Date"/>
45                     </group>
46                     <group expand="0" string="Display">
47                         <filter icon="terp-camera_test" string="Show Confirmed Registrations"
48                               help="Registrations in confirmed or done state" context="{'no_of_draft_invisible':1}"/>
49                     </group>
50                 </search>
51             </field>
52         </record>
53
54         <record model="ir.actions.act_window" id="action_report_event_registration">
55             <field name="name">Events Analysis</field>
56             <field name="res_model">report.event.registration</field>
57             <field name="view_type">form</field>
58             <field name="view_mode">graph</field>
59             <field name="search_view_id" ref="view_report_event_registration_search"/>
60             <field name="context">{"group_by_no_leaf":1, "group_by":[]}</field>
61         </record>
62
63         <record model="ir.actions.act_window.view" id="action_report_event_registration_graph">
64             <field name="sequence" eval="2"/>
65             <field name="view_mode">graph</field>
66             <field name="view_id" ref="report_event_registration_graph"/>
67             <field name="act_window_id" ref="action_report_event_registration"/>
68         </record>
69
70         <menuitem parent="base.menu_reporting" id="menu_reporting_events" sequence="30" groups="event.group_event_manager" name="Events"/>
71         <menuitem parent="menu_reporting_events" action="action_report_event_registration" id="menu_report_event_registration" sequence="3" groups="event.group_event_manager"/>
72
73     </data>
74 </openerp>