Skip to content
Snippets Groups Projects
Commit 587ed5df authored by Priyanka Kakadiya's avatar Priyanka Kakadiya
Browse files

[FIX] hr: fix error on double click of chat user name

PURPOSE

When opening the same form view 2 times in quick succession (e.g. clicking twice
on the name of an employee from a chat window), there is a traceback

SPECIFICATION

It should open public employee form and not raise any error

LINKS

Task-2371687
PR https://github.com/odoo/odoo/pull/61457



closes odoo/odoo#61457

Signed-off-by: default avatarSébastien Theys (seb) <seb@odoo.com>
parent 49acaa4f
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,9 @@ odoo.define('hr.employee_chat', function (require) {
},
destroy: function () {
this.$el.find('.o_employee_chat_btn').off('click');
if (this.$el) {
this.$el.find('.o_employee_chat_btn').off('click');
}
return this._super();
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment