From ff7a82c81babbcf29ae071b7e9247c52f5f71fc4 Mon Sep 17 00:00:00 2001 From: Vincent Schippefilt Date: Wed, 6 Mar 2019 14:02:01 +0100 Subject: [PATCH] [REF] hr: adapt code after jQuery update Part of task 1896658 Co-authored-by: Aaron Bohy Co-authored-by: Christophe Matthieu Co-authored-by: Mathieu Duckerts-Antoine Co-authored-by: David Monjoie Co-authored-by: Martin Geubelle Co-authored-by: svs-odoo Co-authored-by: Vincent Schippefilt --- addons/hr/static/src/js/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr/static/src/js/chat.js b/addons/hr/static/src/js/chat.js index 2f39851de67..233b9898e08 100644 --- a/addons/hr/static/src/js/chat.js +++ b/addons/hr/static/src/js/chat.js @@ -54,7 +54,7 @@ odoo.define('hr.employee_chat', function (require) { dmChat = self.call('mail_service', 'getChannel', dmChatId); dmChat.detach(); }); - $.when(def); + Promise.resolve(def); } }, });