[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) <yti@odoo.com>
This commit is contained in:
@@ -432,6 +432,7 @@
|
||||
<field name="view_mode">tree,kanban,form</field>
|
||||
<field name="search_view_id" ref="view_employee_filter"/>
|
||||
<field name="context">{
|
||||
"searchpanel_default_department_id": active_id,
|
||||
"default_department_id": active_id,
|
||||
"search_default_group_department": 1,
|
||||
"search_default_department_id": active_id,
|
||||
|
||||
Reference in New Issue
Block a user