summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/thread_windows/thread_window.js
diff options
context:
space:
mode:
authorjvm-odoo <jvm@odoo.com>2020-06-09 12:10:29 +0000
committerjvm-odoo <jvm@odoo.com>2020-06-11 10:25:15 +0000
commit329b6c2409bdd344ea5f79261210e86d559dc175 (patch)
treefbda86981530f5efc6f8759b51e9f584455b33fc /addons/mail/static/src/js/thread_windows/thread_window.js
parent997d21a67e7c634d16367bafc5ce9d7b4c4e228d (diff)
[FIX] mail: fix redirect to mention in ThreadWindow
Issue - Install Contacts - In systray, open #general - Mention anyone (except your user) - Send - Click on the mention It does nothing Cause In thread_window _onRedirect, we pass the _open method bounded to this. But this = the #general thread window so it will open the general thread again. As it is already open, it does nothing Solution Modify the open method in order to receive the returned channelID and pass it to the call OPW-2265580 closes odoo/odoo#52834 X-original-commit: 5957aa317e8bb5b0041a1b5d8256cb3ff7d9fe42 Signed-off-by: Jason Van Malder (jvm) <jvm@odoo.com>
Diffstat (limited to 'addons/mail/static/src/js/thread_windows/thread_window.js')
-rw-r--r--addons/mail/static/src/js/thread_windows/thread_window.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/mail/static/src/js/thread_windows/thread_window.js b/addons/mail/static/src/js/thread_windows/thread_window.js
index 4bd1e6c15ff..7280f704fa3 100644
--- a/addons/mail/static/src/js/thread_windows/thread_window.js
+++ b/addons/mail/static/src/js/thread_windows/thread_window.js
@@ -223,8 +223,8 @@ var ThreadWindow = AbstractThreadWindow.extend({
*
* @private
*/
- _open: function () {
- this.call('mail_service', 'openThreadWindow', this.getID());
+ _open: function (channelID) {
+ this.call('mail_service', 'openThreadWindow', channelID || this.getID());
},
/**
* Set the thread window in passive mode, so that new received message will