From cdbe2f0ed40b9440a268ab7a2b4142cc7f339bc2 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Wed, 30 Aug 2017 10:56:24 +0200 Subject: [PATCH] [FIX] hr_timesheet: security, do not require all timesheets user to be HR officer. Regular employees are added to the timesheets user group so they can access to the Timesheets modules. Requiring timesheets users to be HR Officer would almost mean to require all employees to be HR officer, which is not the case. The above is the result of the revision a806f96fa26728f85e169516af6808e9156bcff4 Before, the timesheets user group was the timesheets officer group, and it was the only group for the module timesheets. There were no timesheets manager or user group. This group implied the HR Officer groups, but it made sense as it was the Timesheets Officer group. Now that it is the timesheets user group, it doesn't make sense to imply the HR Officer group. --- addons/hr_timesheet/security/hr_timesheet_security.xml | 4 ++-- addons/hr_timesheet/views/hr_views.xml | 3 +-- .../hr_timesheet_sheet/views/hr_department_views.xml | 2 +- .../views/hr_timesheet_sheet_views.xml | 10 +++++----- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/addons/hr_timesheet/security/hr_timesheet_security.xml b/addons/hr_timesheet/security/hr_timesheet_security.xml index 23d20ea4fd4..17844a9c91d 100644 --- a/addons/hr_timesheet/security/hr_timesheet_security.xml +++ b/addons/hr_timesheet/security/hr_timesheet_security.xml @@ -6,14 +6,14 @@ User - + Manager - + diff --git a/addons/hr_timesheet/views/hr_views.xml b/addons/hr_timesheet/views/hr_views.xml index d92c9680c66..53f93849a08 100644 --- a/addons/hr_timesheet/views/hr_views.xml +++ b/addons/hr_timesheet/views/hr_views.xml @@ -37,10 +37,9 @@ hr.department.kanban.inherit hr.department - + -
diff --git a/addons/hr_timesheet_sheet/views/hr_department_views.xml b/addons/hr_timesheet_sheet/views/hr_department_views.xml index a6ca7f1f87b..ef721415b18 100644 --- a/addons/hr_timesheet_sheet/views/hr_department_views.xml +++ b/addons/hr_timesheet_sheet/views/hr_department_views.xml @@ -5,7 +5,7 @@ hr.department.kanban.inherit hr.department - + diff --git a/addons/hr_timesheet_sheet/views/hr_timesheet_sheet_views.xml b/addons/hr_timesheet_sheet/views/hr_timesheet_sheet_views.xml index 059c4d071c4..b774f792e0f 100644 --- a/addons/hr_timesheet_sheet/views/hr_timesheet_sheet_views.xml +++ b/addons/hr_timesheet_sheet/views/hr_timesheet_sheet_views.xml @@ -58,9 +58,9 @@
@@ -190,7 +190,7 @@ + sequence="11" groups="hr_timesheet.group_timesheet_manager"/>