summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/models/threads
diff options
context:
space:
mode:
authorDebauche Stéphane <std@odoo.com>2019-09-02 09:26:05 +0000
committerAlexandre Kühn <aku@odoo.com>2019-09-03 15:24:17 +0000
commit2450a36108b1a4d18334166b0d92c73df7cc7ec7 (patch)
tree101996c7c574d8fd34a1de53fff8746d04bef82f /addons/mail/static/src/js/models/threads
parent1345702258adbfbee0d780dc22e552395e6d1df7 (diff)
[FIX] mail: mention a channel from a channel
Before this commit, when mentioning a channel from a channel, it crashed with following error: ``` TypeError: unhashable type: 'list' ``` This commit fixes the issue by providing a list of channel ids, instead of a list of `[4, channelID]`, when mentioning channels. closes odoo/odoo#36359 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/js/models/threads')
-rw-r--r--addons/mail/static/src/js/models/threads/thread.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/addons/mail/static/src/js/models/threads/thread.js b/addons/mail/static/src/js/models/threads/thread.js
index ff98906aed7..16635cfaf4f 100644
--- a/addons/mail/static/src/js/models/threads/thread.js
+++ b/addons/mail/static/src/js/models/threads/thread.js
@@ -345,9 +345,7 @@ var Thread = AbstractThread.extend(ServicesMixin, {
body = this._generateEmojis(body);
var messageData = {
partner_ids: data.partner_ids,
- channel_ids: _.map(data.channel_ids, function (channelID) {
- return [4, channelID, false];
- }),
+ channel_ids: data.channel_ids,
body: body,
attachment_ids: data.attachment_ids,
canned_response_ids: data.canned_response_ids,