diff options
| author | Alexandre Kühn <aku@odoo.com> | 2019-08-14 11:48:49 +0000 |
|---|---|---|
| committer | Alexandre Kühn <aku@odoo.com> | 2019-08-14 12:03:46 +0000 |
| commit | 52ad807817a9e5e464713510ad610059c747a335 (patch) | |
| tree | a604dc9570577756e76be10691f6632032061456 /addons/web/static/src/js/views/basic/basic_model.js | |
| parent | 2ba725df615cfc6f57111fe7099736e25645abc3 (diff) | |
[FIX] mail: no crash on opening chat window twice
Revision on https://github.com/odoo/odoo/commit/e8f7770a13d6ddc1cb8ec1bcebcb22e21962ba52
Commit above fixes an issue with chat windows being open twice.
It fixed the issue by aborting opening a chat window in case a
chat window is already being open.
Opening chat window may be a slow process, due to requiring fetching
some messages beforehand. This operation is necessary in order to
check whether the user has access to messages or not, and prompt an
error message without opening the chat window in the latter case.
The fix did not respect the specs of the method `openThread`: it
pre-emptively returned nothing, instead of returning a resolved
promise. Because of this, it crashed on `undefined.then()`.
Task-ID 2053095
closes odoo/odoo#35722
Signed-off-by: Martin Geubelle (mge) <mge@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions
