[FIX] hr: Open department employees with searchpanel
From the department kanban view,
when clicking on the "Employees" button of a department,
it shows all employee regardless of their department.
This is a consequence of the back2basics commit 9a0fedf
which removed the department filter and added a
search panel instead.
This commit changes the search default filter
to a default filter for the searchpanel.
closes odoo/odoo#36635
Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
This commit is contained in:
committed by
Aaron Bohy
parent
127be68cca
commit
b707a5fd0b
@@ -341,7 +341,7 @@
|
||||
<field name="view_mode">kanban,form,tree</field>
|
||||
<field name="search_view_id" ref="view_employee_filter"/>
|
||||
<field name="context">{
|
||||
"search_default_department_id": [active_id],
|
||||
"searchpanel_default_department_id": active_id,
|
||||
"default_department_id": active_id}
|
||||
</field>
|
||||
<field name="help" type="html">
|
||||
|
||||
Reference in New Issue
Block a user