From 0e7c7e4c78ecdc7822ba479a0880447cd16b3c24 Mon Sep 17 00:00:00 2001 From: "Rohitkumar (roku)" Date: Tue, 6 Dec 2022 11:40:05 +0000 Subject: [PATCH] [IMP] hr_holidays: improve filters ux in the time off The purpose of this PR is to improve the filters for time off In Commit, Filters relabelling: - Approved Allocations -> Approved - Active Time Off -> Active - Archived Time Off -> Archived - Cancelled Time Off -> Cancelled - remove the `Current Year` filter in hr leave - re-sequence filter of the hr leave and and hr leave allocation task-3090753 closes odoo/odoo#107378 Signed-off-by: Kevin Baptiste --- addons/hr_holidays/models/hr_leave_type.py | 2 -- .../views/hr_leave_allocation_views.xml | 22 +++++++++---------- addons/hr_holidays/views/hr_leave_views.xml | 16 +++++--------- 3 files changed, 17 insertions(+), 23 deletions(-) diff --git a/addons/hr_holidays/models/hr_leave_type.py b/addons/hr_holidays/models/hr_leave_type.py index 127a717277b..30829f15c05 100644 --- a/addons/hr_holidays/models/hr_leave_type.py +++ b/addons/hr_holidays/models/hr_leave_type.py @@ -588,8 +588,6 @@ class HolidaysType(models.Model): ] action['context'] = { 'default_holiday_status_id': self.ids[0], - 'search_default_need_approval_approved': 1, - 'search_default_this_year': 1, } return action diff --git a/addons/hr_holidays/views/hr_leave_allocation_views.xml b/addons/hr_holidays/views/hr_leave_allocation_views.xml index d2e99f7a972..2b29b6e6c8e 100644 --- a/addons/hr_holidays/views/hr_leave_allocation_views.xml +++ b/addons/hr_holidays/views/hr_leave_allocation_views.xml @@ -10,17 +10,7 @@ - - - - - - - - - - - + + + + + + + + + + + diff --git a/addons/hr_holidays/views/hr_leave_views.xml b/addons/hr_holidays/views/hr_leave_views.xml index 1767b5c18b5..2186a798d03 100644 --- a/addons/hr_holidays/views/hr_leave_views.xml +++ b/addons/hr_holidays/views/hr_leave_views.xml @@ -43,10 +43,9 @@ - - - - + + + @@ -56,17 +55,14 @@ - - - - +