Continue modifications for better security management

This commit is contained in:
Alexis de Lattre
2015-11-23 10:26:32 +01:00
parent c3a55088ed
commit 1a38600aeb
4 changed files with 5 additions and 5 deletions

View File

@@ -56,7 +56,7 @@ hr_holidays.edit_holiday_new is used for both leaves and allocation -->
</group>
</xpath>
<field name="department_id" position="after">
<field name="posted_date" groups="base.group_hr_user"/>
<field name="posted_date" groups="base.group_hr_manager"/>
</field>
</field>
</record>
@@ -84,7 +84,7 @@ hr_holidays.edit_holiday_new is used for both leaves and allocation -->
<attribute name="invisible">0</attribute>
</field>
<field name="holiday_status_id" position="after">
<field name="posted_date" groups="base.group_hr_user"/>
<field name="posted_date" groups="base.group_hr_manager"/>
</field>
</field>
</record>

View File

@@ -5,7 +5,7 @@
<!--
Employee : only see his holidays
Officer = the manager of some employees : see his holidays and the ones of his subordinates
Manager = person that administrates the holidays process : can see everything
Manager = person that administrates the holidays process : can see everything, do mass allocation, post holidays, etc...
-->
<record id="hr_holidays_counter_personal_rule" model="ir.rule">

View File

@@ -39,7 +39,7 @@
<menuitem id="hr_holidays_mass_allocation_menu"
action="hr_holidays_mass_allocation_action"
parent="hr_holidays.menu_open_ask_holidays"
groups="base.group_hr_user"/>
groups="base.group_hr_manager"/>
</data>
</openerp>

View File

@@ -41,7 +41,7 @@
<menuitem id="hr_holidays_post_menu"
action="hr_holidays_post_action"
parent="hr_holidays.menu_open_ask_holidays"
groups="base.group_hr_user"/>
groups="base.group_hr_manager"/>
</data>
</openerp>