From 2e3b392a6f60b678858e544bf42e7d0875f69f81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 24 Aug 2018 17:12:57 +0200 Subject: [PATCH] [REF] hr_holidays: differentiate personal and manager leave / allocation views Purpose of this commit is to clean allocation and request views and prepare future modifications. We would like to separate personal views (making a request for myself) from manager views (giving more options). Specifications * views under "My" menu should be simplified * in a general way there should be no action buttons under my. Hide approve/refuse buttons in personal mode; * show only leave type, description and duration when asking for an allocation; hide details about group allocation and accrual; hide action buttons; * show only leave type, description and from/to choice as well as duration when asking for a leave; hide details about group allocation; hide action buttons; * in list view hide employee and buttons my menu; * views under "Manager" menu should be complete * display complete form view; * add buttons to approve / refuse directly from the list view in manager menus; This commit is linked to task ID 1876795 and PR #26571. --- .../views/hr_leave_allocation_views.xml | 135 ++++++++++++----- addons/hr_holidays/views/hr_leave_views.xml | 136 ++++++++++++++---- 2 files changed, 211 insertions(+), 60 deletions(-) diff --git a/addons/hr_holidays/views/hr_leave_allocation_views.xml b/addons/hr_holidays/views/hr_leave_allocation_views.xml index 2818b617d15..33a9eccad9c 100644 --- a/addons/hr_holidays/views/hr_leave_allocation_views.xml +++ b/addons/hr_holidays/views/hr_leave_allocation_views.xml @@ -47,9 +47,10 @@ - - Allocation Request + + hr.leave.allocation.view.form hr.leave.allocation + 32
@@ -57,18 +58,11 @@
-

+

@@ -77,35 +71,23 @@