diff options
| author | Nisha patel <nit@odoo.com> | 2020-07-09 13:26:52 +0000 |
|---|---|---|
| committer | Nisha patel <nit@odoo.com> | 2020-08-03 15:48:34 +0000 |
| commit | 7f3a8d99287c835ee3ec703627c8ef906732c897 (patch) | |
| tree | 4dfd1962023ba2a10058252cbe3f4d40f72b7d31 /addons/mail/static/src/components/chat_window/chat_window.js | |
| parent | 7ebe85f138f33bbb56514a88292679ee73625832 (diff) | |
[FIX] hr: Hide employee chat button in modals
Currently, the "Chat" button appears in the form view when it is
displayed as a modal and on click sends to the app switcher
because js_class is not loaded on the dialog when employee
form view is opened through the one2many(dialog).
For ex: in online appointment when on click on 'available
emloyee' it will open the employee form view in dialog and there
is a chat icon but it does not work.
So in this commit, we fix this issue by hiding the "chat" button
when the view is displayed as a modal. make a button visible
based on action context and when form view is oped through the
click of one2many then do not display the chat icon on modal
dialog.
closes odoo/odoo#55345
Taskid: 2291340
Closes: #54381
X-original-commit: e2bac64411f80a3fcf2c5d5d60ad3eccf6517e56
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/mail/static/src/components/chat_window/chat_window.js')
0 files changed, 0 insertions, 0 deletions
