[IMwP] open the right menu according to the installed application
[odoo/odoo.git] / addons / account_accountant / account_accountant_data.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4         <!-- rename root menu "Accounting" -->
5         <record id="account.menu_finance" model="ir.ui.menu">
6             <field name="name">Accounting</field>
7         </record>
8     </data>
9
10     <data noupdate="1">
11         <!-- After installation of the module, open the related menu -->
12         <record id="action_client_account_menu" model="ir.actions.client">
13             <field name="name">Open Accounting Menu</field>
14             <field name="tag">reload</field>
15             <field name="params" eval="{'menu_id': ref('account.menu_finance')}"/>
16         </record>
17         <record id="todo_open_account_menu" model="ir.actions.todo">
18             <field name="action_id" ref="action_client_account_menu"/>
19             <field name="type">automatic</field>
20             <field name="sequence">100</field>
21         </record>
22     </data>
23
24     <data noupdate="1">
25         <!-- notify all employees of module installation -->
26         <function model="mail.group" name="message_append_note">
27             <!-- ids, subject, body, parent_id=False, type='notification', content_subtype='html' -->
28             <value eval="[ref('mail.group_all_employees')]"/>
29             <value>Module Accounting and Finance has been installed</value>
30             <value>From the top menu Accounting, manage all of your accounting:
31                 general accounting, cost/analytic accounting, third party
32                 accounting, taxes, budgets, customer and supplier invoices,
33                 bank statements, reconciliation process.
34             </value>
35         </function>
36     </data>
37 </openerp>