From 9af6e9070af1a949d3ec40a0767d2aa4ffc9719d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Mon, 6 Aug 2018 10:55:01 +0200 Subject: [PATCH] [IMP] hr_holidays: improve application menus Purpose: new menu organization * Dashboard (only for officer and manager like currently) * New Request (= leave requetss in calendar view) * My Leaves * Leaves Summary * Leaves Requests (in list view) * Allocation Requests * Managers (current menu is ok) * Reporting (current menu is ok) * Configuration (ok) This commit is linked to task ID 1871812 and PR #26180. --- addons/hr_holidays/views/hr_leave_views.xml | 56 +++++++++++++++++++-- 1 file changed, 52 insertions(+), 4 deletions(-) diff --git a/addons/hr_holidays/views/hr_leave_views.xml b/addons/hr_holidays/views/hr_leave_views.xml index b74c3626ad3..dc134646c98 100644 --- a/addons/hr_holidays/views/hr_leave_views.xml +++ b/addons/hr_holidays/views/hr_leave_views.xml @@ -209,13 +209,13 @@ id="menu_hr_holidays_my_leaves" name="My Leaves" parent="menu_hr_holidays_root" - sequence="2"/> + sequence="3"/> - Leaves Request + New Request hr.leave form + calendar,tree,form {} [('user_id', '=', uid)] @@ -266,10 +267,57 @@ + + Leaves Request + hr.leave + form + tree,calendar,form + + {} + [('user_id', '=', uid)] + + +

+ Create a new leave request +

+ Once you have recorded your leave request, it will be sent + to a manager for validation. Be sure to set the right leave + type (recuperation, legal leaves, sickness) and the exact + number of open days related to your leave. +

+
+
+ + + + + tree + + + + + + + form + + + + + + + calendar + + + +