[FIX] hr_timesheet: merge hr_timesheet Officer and Manager access right
There's no real difference between the 2 access rights
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
|
||||
|
||||
<menuitem id="menu_timesheets_reports" name="Reports"
|
||||
parent="timesheet_menu_root" sequence="99" groups="hr_timesheet.group_hr_timesheet_manager"/>
|
||||
parent="timesheet_menu_root" sequence="99" groups="hr_timesheet.group_hr_timesheet_user"/>
|
||||
<menuitem id="menu_hr_activity_analysis" parent="menu_timesheets_reports" action="act_hr_timesheet_report"
|
||||
name="Activity Analysis"/>
|
||||
</data>
|
||||
|
||||
@@ -4,16 +4,10 @@
|
||||
<field name="name">Officer</field>
|
||||
<field name="category_id" ref="base.module_category_hr_timesheet"/>
|
||||
<field name="implied_ids" eval="[(4, ref('hr.group_hr_user'))]"/>
|
||||
</record>
|
||||
|
||||
<record id="group_hr_timesheet_manager" model="res.groups">
|
||||
<field name="name">Manager</field>
|
||||
<field name="category_id" ref="base.module_category_hr_timesheet"/>
|
||||
<field name="implied_ids" eval="[(4, ref('hr_timesheet.group_hr_timesheet_user'))]"/>
|
||||
<field name="users" eval="[(4, ref('base.user_root'))]"/>
|
||||
</record>
|
||||
|
||||
<record id="base.default_user" model="res.users">
|
||||
<field name="groups_id" eval="[(4,ref('hr_timesheet.group_hr_timesheet_manager'))]"/>
|
||||
<field name="groups_id" eval="[(4,ref('hr_timesheet.group_hr_timesheet_user'))]"/>
|
||||
</record>
|
||||
</odoo>
|
||||
@@ -10,7 +10,7 @@
|
||||
-
|
||||
!record {model: res.users, id: res_hr_timesheet_manager}:
|
||||
groups_id:
|
||||
- hr_timesheet.group_hr_timesheet_manager
|
||||
- hr_timesheet.group_hr_timesheet_user
|
||||
-
|
||||
Create a user as 'HR timesheet Officer'
|
||||
-
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
name: HR Manager
|
||||
login: hr
|
||||
groups_id:
|
||||
- hr_timesheet.group_hr_timesheet_manager
|
||||
- hr_timesheet.group_hr_timesheet_user
|
||||
-
|
||||
Create a product with type service used to specify employees designation
|
||||
-
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
||||
access_hr_timesheet_sheet_sheet_day,hr_timesheet_sheet.sheet.day,model_hr_timesheet_sheet_sheet_day,hr_timesheet.group_hr_timesheet_user,1,1,1,1
|
||||
access_hr_timesheet_sheet_sheet_day_user,hr.timesheet.sheet.sheet.day.user,model_hr_timesheet_sheet_sheet_day,base.group_user,1,1,1,0
|
||||
access_hr_timesheet_attendance_report,access_hr_timesheet_attendance_report,model_hr_timesheet_attendance_report,hr_timesheet.group_hr_timesheet_manager,1,0,0,0
|
||||
access_hr_timesheet_attendance_report,access_hr_timesheet_attendance_report,model_hr_timesheet_attendance_report,hr_timesheet.group_hr_timesheet_user,1,0,0,0
|
||||
|
||||
|
@@ -238,7 +238,7 @@
|
||||
type="action"
|
||||
class="oe_stat_button"
|
||||
icon="fa-clock-o"
|
||||
groups="hr_timesheet.group_hr_timesheet_manager">
|
||||
groups="hr_timesheet.group_hr_timesheet_user">
|
||||
<field name="timesheet_count" widget="statinfo" string="Timesheets"/>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user