diff options
| author | Martin Trigaux <mat@odoo.com> | 2016-12-06 11:31:19 +0100 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2016-12-06 11:45:08 +0100 |
| commit | 91139b483affce60cf1957f2b9c4fe1a500468ba (patch) | |
| tree | 9b961e9b273dbe77173dd153856b8e75bec8e7ff /addons/mail/static/src/js/chat_manager.js | |
| parent | 97f95de89ce96c6a0dd96305adf3e01553158e99 (diff) | |
[FIX] mail: untranslated message subtypes
The tacked messages in the chatter were parially translated.
e.g. "Lead created"
The call did not gave the user context and the subtype message was not
translated.
Closes #14589
Diffstat (limited to 'addons/mail/static/src/js/chat_manager.js')
| -rw-r--r-- | addons/mail/static/src/js/chat_manager.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/chat_manager.js b/addons/mail/static/src/js/chat_manager.js index 02c4ce89852..4646a05b459 100644 --- a/addons/mail/static/src/js/chat_manager.js +++ b/addons/mail/static/src/js/chat_manager.js @@ -469,7 +469,7 @@ function fetch_document_messages (ids, options) { if (options.force_fetch || _.difference(ids.slice(0, LIMIT), loaded_msg_ids).length) { var ids_to_load = _.difference(ids, loaded_msg_ids).slice(0, LIMIT); - return MessageModel.call('message_format', [ids_to_load]).then(function (msgs) { + return MessageModel.call('message_format', [ids_to_load], {context: session.user_context}).then(function (msgs) { var processed_msgs = []; _.each(msgs, function (msg) { processed_msgs.push(add_message(msg, {silent: true})); |
