[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:
Lucas Lefèvre
2019-09-16 07:29:43 +00:00
committed by Aaron Bohy
parent 127be68cca
commit b707a5fd0b
+1 -1
View File
@@ -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">