[FIX] event: jump on the correct menu after installing
[odoo/odoo.git] / addons / event / event_data.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data noupdate="1">
4         <!-- After installation of the module, open the related menu -->
5         <record id="action_client_event_menu" model="ir.actions.client">
6             <field name="name">Open Event Menu</field>
7             <field name="tag">reload</field>
8             <field name="params" eval="{'menu_id': ref('event.menu_event_event')}"/>
9         </record>
10         <record id="base.open_menu" model="ir.actions.todo">
11             <field name="action_id" ref="action_client_event_menu"/>
12             <field name="state">open</field>
13         </record>
14
15         <!-- Event-related subtypes for messaging / Chatter -->
16         <record id="event.mt_event_registration" model="mail.message.subtype">
17             <field name="name">New Registration</field>
18             <field name="res_model">event.event</field>
19             <field name="default" eval="False"/>
20         </record>
21
22         <!-- notify all employees of module installation -->
23         <function model="mail.group" name="message_post">
24             <!-- ids, subject, body, parent_id=False, type='notification', content_subtype='html' -->
25             <value eval="[ref('mail.group_all_employees')]"/>
26             <value>From the top menu Events, you can organize events, manage registrations, automate communication around your event and sell events through your quotations.</value>
27             <value>Module Events has been installed</value>
28         </function>
29     </data>
30 </openerp>