diff options
| author | Géry Debongnie <ged@odoo.com> | 2015-12-02 16:30:37 +0100 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2015-12-03 15:50:02 +0100 |
| commit | b6a4e43c02e8c536a24fcb8cb1a5662dc4b7c42c (patch) | |
| tree | 39e0cbaa6416c4692237ad6dff2446255eb3abe4 /addons/mail/static/src/js/window_manager.js | |
| parent | 0644cfc543a58f9d11d5aca112cda0f131cb831e (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/window_manager.js')
| -rw-r--r-- | addons/mail/static/src/js/window_manager.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/mail/static/src/js/window_manager.js b/addons/mail/static/src/js/window_manager.js index 65bc7ba8e91..5a62c15ed8b 100644 --- a/addons/mail/static/src/js/window_manager.js +++ b/addons/mail/static/src/js/window_manager.js @@ -37,8 +37,8 @@ function open_chat (session) { chat_manager.fold_channel(channel_id); }); - chat_session.window.on("post_message", null, function (message) { - chat_manager.post_message(message); + chat_session.window.on("post_message", null, function (message, channel_id) { + chat_manager.post_message(message, {channel_id: channel_id}); }); chat_session.window.on("messages_read", null, function () { chat_manager.mark_channel_as_seen(channel); |
