From d3472415dd6288b4ba66543e51ae9d1eaf0fa1bf Mon Sep 17 00:00:00 2001 From: Rob Coekaerts Date: Thu, 5 Oct 2023 09:53:10 +0200 Subject: [PATCH] [IMP] hr: ad default searchpanel filter on act_employee_from_department Before this commit, when redirecting to the employee list view from a specific department, all the employees of all departments were shown. With this commit, that list view has a default searchpanel filter of the currently active department, making the flow more intuitive. task-3539205 closes odoo/odoo#137862 X-original-commit: 81b72301c68fa3bffc91691540a3e4b00bc7de0a Signed-off-by: Yannick Tivisse (yti) --- addons/hr/views/hr_employee_views.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/hr/views/hr_employee_views.xml b/addons/hr/views/hr_employee_views.xml index c77e23841dd..10d5ae7bcfa 100644 --- a/addons/hr/views/hr_employee_views.xml +++ b/addons/hr/views/hr_employee_views.xml @@ -432,6 +432,7 @@ tree,kanban,form { + "searchpanel_default_department_id": active_id, "default_department_id": active_id, "search_default_group_department": 1, "search_default_department_id": active_id,