summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/chat_window.js
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2015-12-02 16:30:37 +0100
committerGéry Debongnie <ged@odoo.com>2015-12-03 15:50:02 +0100
commitb6a4e43c02e8c536a24fcb8cb1a5662dc4b7c42c (patch)
tree39e0cbaa6416c4692237ad6dff2446255eb3abe4 /addons/mail/static/src/js/chat_window.js
parent0644cfc543a58f9d11d5aca112cda0f131cb831e (diff)
[FIX] mail: fix full composer messages
Full composer messages were not loaded in the chatter when sent. We lost that functionality sometimes in the previous months. This commit makes it work properly again. Some refactoring were required, we needed a way to load messages with a given res_id and model.
Diffstat (limited to 'addons/mail/static/src/js/chat_window.js')
-rw-r--r--addons/mail/static/src/js/chat_window.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/mail/static/src/js/chat_window.js b/addons/mail/static/src/js/chat_window.js
index 6166c4bce3d..e9fcaa9fe09 100644
--- a/addons/mail/static/src/js/chat_window.js
+++ b/addons/mail/static/src/js/chat_window.js
@@ -82,10 +82,9 @@ return Widget.extend({
content: this.$input.val(),
attachment_ids: [],
partner_ids: [],
- channel_id: this.channel_id,
};
this.$input.val('');
- this.trigger('post_message', message);
+ this.trigger('post_message', message, this.channel_id);
}
},
on_click_close: function (event) {