summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/thread.js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2015-12-15 12:01:25 +0100
committerAaron Bohy <aab@odoo.com>2015-12-16 15:48:42 +0100
commitf5e4fbb20c095f5fe197bac8da3157ded568c1c4 (patch)
tree710ca9f6813341d5d3279839ebbd0df0fba0214f /addons/mail/static/src/js/thread.js
parent1fb0136f5ad5369d87b098d0a64fd2c9946eaed7 (diff)
[FIX] mail: correctly redirect to channels
Clicking on a channel link should open that channel in Discuss, not the channel form view.
Diffstat (limited to 'addons/mail/static/src/js/thread.js')
-rw-r--r--addons/mail/static/src/js/thread.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/thread.js b/addons/mail/static/src/js/thread.js
index b35445e8d3f..99b4d6ba1c2 100644
--- a/addons/mail/static/src/js/thread.js
+++ b/addons/mail/static/src/js/thread.js
@@ -90,7 +90,7 @@ var Thread = Widget.extend({
if (id) {
event.preventDefault();
var model = $(event.target).data('oe-model');
- var options = model ? {model: model, id: id} : {channel_id: id};
+ var options = model && (model !== 'mail.channel') ? {model: model, id: id} : {channel_id: id};
this._redirect(options);
}
},