diff --git a/addons/hr/static/src/views/kanban_view.js b/addons/hr/static/src/views/kanban_view.js
index c0d62167e7e5d3610a2567770f35857aa53906f5..78ca6f3ef4c2e28dff536c4aed33e9e2704909f5 100644
--- a/addons/hr/static/src/views/kanban_view.js
+++ b/addons/hr/static/src/views/kanban_view.js
@@ -7,7 +7,7 @@ import { KanbanModel } from '@web/views/kanban/kanban_model';
 
 export class EmployeeKanbanRecord extends KanbanModel.Record {
     async openChat(employeeId) {
-        const messaging = await this.model.messaging.get();
+        const messaging = await this.model.env.services.messaging.get();
         messaging.openChat({ employeeId });
     }
 }