diff options
| author | Aaron Bohy <aab@odoo.com> | 2015-10-01 17:28:22 +0200 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2015-10-02 15:49:37 +0200 |
| commit | 28d3dc6cc99f1f2dd83019d7e9edf5ecc3bb80cb (patch) | |
| tree | 113f993a7dbe465a54be660c9a4d0b4a22230a7d /addons/mail/static/src/js/chat_manager.js | |
| parent | 8908d5ccab40bccdb0dbfc856da20c4d5313a964 (diff) | |
[IMP] mail: only display needactions in channel inbox
Diffstat (limited to 'addons/mail/static/src/js/chat_manager.js')
| -rw-r--r-- | addons/mail/static/src/js/chat_manager.js | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/addons/mail/static/src/js/chat_manager.js b/addons/mail/static/src/js/chat_manager.js index 3fa366dbe49..240355f79d4 100644 --- a/addons/mail/static/src/js/chat_manager.js +++ b/addons/mail/static/src/js/chat_manager.js @@ -179,6 +179,7 @@ function make_channel (data, options) { is_folded: data.state === "folded", autoswitch: 'autoswitch' in options ? options.autoswitch : true, hidden: options.hidden, + display_needactions: options.display_needactions, cache: {'[]': { all_history_loaded: false, loaded: false, @@ -410,15 +411,15 @@ var chat_manager = { // --------------------------------------------------------------------------------- function init () { add_channel({ - id: "channel_inbox", - name: _t("Inbox"), - type: "static" - }); + id: "channel_inbox", + name: _t("Inbox"), + type: "static", + }, { display_needactions: true }); add_channel({ - id: "channel_starred", - name: _t("Starred"), - type: "static" + id: "channel_starred", + name: _t("Starred"), + type: "static" }); var load_channels = session.rpc('/mail/client_action').then(function (result) { |
