[FIX] hr: fix the traceback when click on a resource

Steps to reproduce:
-Install planning
-Go to Gantt View
-Click on resource avatar

task-2960247

closes odoo/odoo#99551

Signed-off-by: Kevin Baptiste <kba@odoo.com>
This commit is contained in:
Prakash Prajapati
2022-09-06 21:23:55 +02:00
parent f163958330
commit bd7f6df4af
+1 -1
View File
@@ -50,9 +50,9 @@ registerModel({
model: 'hr.employee.public',
method: 'read',
args: [ids],
fields: fields,
kwargs: {
context,
fields,
},
});
this.messaging.models['Employee'].insert(employeesData.map(employeeData =>