summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorXavier Dubuc <xdu@odoo.com>2020-06-29 12:45:42 +0000
committerXavier Dubuc <xdu@odoo.com>2020-07-06 14:23:17 +0000
commit5afc70faef1de3510f38d3cb4253ad4e05a0b676 (patch)
tree24a824112ed4c5433fd5c90a7608e2ff441c1730 /addons
parent2479da0176280d723a5c6f5de1f3be2b77dfb51f (diff)
[FIX] mail: fix open thread in discuss
See also odoo/enterprise#11684 task-2282273 closes odoo/odoo#54141 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/mail/static/src/models/thread/thread.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/mail/static/src/models/thread/thread.js b/addons/mail/static/src/models/thread/thread.js
index 9bedc8096bc..03687e19b48 100644
--- a/addons/mail/static/src/models/thread/thread.js
+++ b/addons/mail/static/src/models/thread/thread.js
@@ -547,8 +547,9 @@ function factory(dependencies) {
openExpanded() {
const discuss = this.env.messaging.discuss;
if (['mail.channel', 'mail.box'].includes(this.model)) {
+ discuss.threadViewer.update({ thread: [['replace', this]] });
this.env.bus.trigger('do-action', {
- action: 'mail.action_new_discuss',
+ action: 'mail.action_discuss',
options: {
clear_breadcrumbs: false,
active_id: discuss.threadToActiveId(this),