[MOD/IMP] hr_holidays : Usability Improvement in Accessrights

bzr revid: dbr@tinyerp.com-20101006135154-oovxhs611nk4tzso
This commit is contained in:
DBR (OpenERP) 2010-10-06 19:21:54 +05:30
parent a3efd4f1a0
commit a74c490c6d
4 changed files with 6 additions and 7 deletions

View File

@ -1,4 +1,5 @@
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
"access_hr_action_reason_manager","hr.action.reason.manager","model_hr_action_reason","base.group_hr_manager",1,1,1,1
"access_hr_action_reason_user","hr.action.reason.user","model_hr_action_reason","base.group_hr_user",1,1,1,1
"access_hr_action_reason_employee_user","hr.action.reason.employee.user","model_hr_attendance","base.group_hr_user",1,1,1,1
"access_hr_attendance_manager","hr.attendance.manager","model_hr_attendance","base.group_hr_manager",1,1,1,1

1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_hr_action_reason_manager hr.action.reason.manager model_hr_action_reason base.group_hr_manager 1 1 1 1
3 access_hr_action_reason_user hr.action.reason.user model_hr_action_reason base.group_hr_user 1 1 1 1
4 access_hr_action_reason_employee_user hr.action.reason.employee.user model_hr_attendance base.group_hr_user 1 1 1 1
5 access_hr_attendance_manager hr.attendance.manager model_hr_attendance base.group_hr_manager 1 1 1 1

View File

@ -26,7 +26,7 @@
icon="terp-graph"
id="base.menu_hr_manager"
parent="base.menu_hr_dasboard"
groups = "base.group_hr_manager"
groups = "base.group_hr_manager,base.group_hr_user"
sequence="5"/>
</data>
</openerp>

View File

@ -380,7 +380,7 @@
<field name="view_mode">tree,form</field>
</record>
<menuitem sequence="3" id="hr.menu_open_view_attendance_reason_config" parent="hr.menu_hr_configuration" name="Holidays" groups="base.group_system"/>
<menuitem sequence="3" id="hr.menu_open_view_attendance_reason_config" parent="hr.menu_hr_configuration" name="Holidays" groups="base.group_hr_manager"/>
<menuitem name="Leave Type"
action="open_view_holiday_status"
id="menu_open_view_holiday_status"

View File

@ -7,8 +7,6 @@
"access_hr_holidays_report","hr.holidays.report","model_hr_holidays_report","base.group_hr_manager",1,1,1,1
"access_hr_holidays_remaining_leaves_manager","hr.hr.holidays.remaining.leaves.manager","model_hr_holidays_remaining_leaves_user","base.group_hr_manager",1,1,1,1
"access_available_holidays_report","hr.available.holidays.report","model_available_holidays_report","base.group_hr_manager",1,1,1,1
"access_hr_holydays_status_system","hr.holidays.status.system","model_hr_holidays_status","base.group_system",1,1,1,1
"access_hr_holidays_system","hr.holidays.system","model_hr_holidays","base.group_system",1,0,0,0
"access_hr_holidays_employee","hr.holidays.employee","model_hr_holidays","base.group_user",1,0,0,0
"access_hr_holydays_status_employee","hr.holidays.status.employee","model_hr_holidays_status","base.group_user",1,0,0,0
"access_resource_calendar_leaves_manager","resource_calendar_leaves_manager","resource.model_resource_calendar_leaves","base.group_hr_manager",1,1,1,1

1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
7 access_hr_holidays_report hr.holidays.report model_hr_holidays_report base.group_hr_manager 1 1 1 1
8 access_hr_holidays_remaining_leaves_manager hr.hr.holidays.remaining.leaves.manager model_hr_holidays_remaining_leaves_user base.group_hr_manager 1 1 1 1
9 access_available_holidays_report hr.available.holidays.report model_available_holidays_report base.group_hr_manager 1 1 1 1
access_hr_holydays_status_system hr.holidays.status.system model_hr_holidays_status base.group_system 1 1 1 1
access_hr_holidays_system hr.holidays.system model_hr_holidays base.group_system 1 0 0 0
10 access_hr_holidays_employee hr.holidays.employee model_hr_holidays base.group_user 1 0 0 0
11 access_hr_holydays_status_employee hr.holidays.status.employee model_hr_holidays_status base.group_user 1 0 0 0
12 access_resource_calendar_leaves_manager resource_calendar_leaves_manager resource.model_resource_calendar_leaves base.group_hr_manager 1 1 1 1