[FIX] hr_equipment,hr_expense,hr_holidays,hr_recruitment,hr_timesheet_sheet: Jump to right menu after install

as the applications have been splitted from the hr menuitem
This commit is contained in:
Yannick Tivisse
2015-08-31 12:58:43 +02:00
parent da7de41d9f
commit a0244510c6
9 changed files with 54 additions and 30 deletions
@@ -68,15 +68,5 @@
<field name="relation_field">category_id</field>
</record>
<!-- After installation of the module, open the related menu -->
<record id="action_client_hr_menu" model="ir.actions.client">
<field name="name">Open HR Menu</field>
<field name="tag">reload</field>
<field name="params" eval="{'menu_id': ref('hr.menu_hr_root')}"/>
</record>
<record id="base.open_menu" model="ir.actions.todo">
<field name="action_id" ref="action_client_hr_menu"/>
<field name="state">open</field>
</record>
</data>
</odoo>
@@ -570,4 +570,16 @@
groups="base.group_no_one"
sequence="2" />
<data noupdate="1">
<!-- After installation of the module, open the related menu -->
<record id="action_client_hr_equipment_menu" model="ir.actions.client">
<field name="name">Open HR Menu</field>
<field name="tag">reload</field>
<field name="params" eval="{'menu_id': ref('menu_equipment_title')}"/>
</record>
<record id="base.open_menu" model="ir.actions.todo">
<field name="action_id" ref="action_client_hr_equipment_menu"/>
<field name="state">open</field>
</record>
</data>
</odoo>
+12
View File
@@ -46,4 +46,16 @@
</data>
</field>
</record>
<data noupdate="1">
<!-- After installation of the module, open the related menu -->
<record id="action_client_hr_expense_menu" model="ir.actions.client">
<field name="name">Open HR Menu</field>
<field name="tag">reload</field>
<field name="params" eval="{'menu_id': ref('menu_hr_expense_root')}"/>
</record>
<record id="base.open_menu" model="ir.actions.todo">
<field name="action_id" ref="action_client_hr_expense_menu"/>
<field name="state">open</field>
</record>
</data>
</odoo>
@@ -1,11 +1,4 @@
<openerp>
<data noupdate="1">
<!-- After installation of the module, open the related menu -->
<record id="base.open_menu" model="ir.actions.todo">
<field name="action_id" ref="hr.action_client_hr_menu"/>
<field name="state">open</field>
</record>
</data>
<data>
<record id="product_expense_installer_tree_view" model="ir.ui.view">
<field name="name">product.product.tree</field>
+12
View File
@@ -73,4 +73,16 @@
</data>
</field>
</record>
<data noupdate="1">
<!-- After installation of the module, open the related menu -->
<record id="action_client_hr_holidays_menu" model="ir.actions.client">
<field name="name">Open HR Menu</field>
<field name="tag">reload</field>
<field name="params" eval="{'menu_id': ref('menu_hr_holidays_root')}"/>
</record>
<record id="base.open_menu" model="ir.actions.todo">
<field name="action_id" ref="action_client_hr_holidays_menu"/>
<field name="state">open</field>
</record>
</data>
</odoo>
-5
View File
@@ -2,11 +2,6 @@
<openerp>
<data noupdate="1">
<!-- After installation of the module, open the related menu -->
<record id="base.open_menu" model="ir.actions.todo">
<field name="action_id" ref="hr.action_client_hr_menu"/>
<field name="state">open</field>
</record>
<!-- notify all employees of module installation -->
<record model="mail.message" id="module_install_notification">
<field name="model">mail.channel</field>
@@ -1,12 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="1">
<!-- After installation of the module, open the related menu -->
<record id="base.open_menu" model="ir.actions.todo">
<field name="action_id" ref="hr.action_client_hr_menu"/>
<field name="state">open</field>
</record>
</data>
<data>
<record id="view_hr_recruitment_configuration" model="ir.ui.view">
<field name="name">Configure Recruitment</field>
@@ -703,4 +703,16 @@
</record>
</data>
<data noupdate="1">
<!-- After installation of the module, open the related menu -->
<record id="action_client_hr_recruitment_menu" model="ir.actions.client">
<field name="name">Open HR Menu</field>
<field name="tag">reload</field>
<field name="params" eval="{'menu_id': ref('menu_hr_recruitment_root')}"/>
</record>
<record id="base.open_menu" model="ir.actions.todo">
<field name="action_id" ref="action_client_hr_recruitment_menu"/>
<field name="state">open</field>
</record>
</data>
</openerp>
@@ -2,8 +2,13 @@
<openerp>
<data noupdate="1">
<!-- After installation of the module, open the related menu -->
<record id="action_client_hr_timesheet_sheet_menu" model="ir.actions.client">
<field name="name">Open HR Menu</field>
<field name="tag">reload</field>
<field name="params" eval="{'menu_id': ref('hr_attendance.timesheet_menu_root')}"/>
</record>
<record id="base.open_menu" model="ir.actions.todo">
<field name="action_id" ref="hr.action_client_hr_menu"/>
<field name="action_id" ref="action_client_hr_timesheet_sheet_menu"/>
<field name="state">open</field>
</record>
</data>