diff options
| author | Julien Giannone <jgi@odoo.com> | 2020-09-21 18:58:55 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2020-09-21 20:29:32 +0000 |
| commit | 8bb3b09a2abf27011e4920a9dc045fc27e1ec628 (patch) | |
| tree | de8b38bf7f933f28ae2f9d9f593d885bf8b0c676 /addons/mail/static/src/models/messaging/messaging.js | |
| parent | d40fd8e3e29d1954f60ebbd64a319ae564b7a639 (diff) | |
[IMP] mail: reintroduce channel mentions, canned responses, commands
task-2280308
closes odoo/odoo#58166
X-original-commit: b63d0d2ee5f3bff24a5e1e1cd962d59bebef082d
Related: odoo/enterprise#13392
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/mail/static/src/models/messaging/messaging.js')
| -rw-r--r-- | addons/mail/static/src/models/messaging/messaging.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/addons/mail/static/src/models/messaging/messaging.js b/addons/mail/static/src/models/messaging/messaging.js index c215d2e5774..a7f7fcf0b6a 100644 --- a/addons/mail/static/src/models/messaging/messaging.js +++ b/addons/mail/static/src/models/messaging/messaging.js @@ -2,7 +2,7 @@ odoo.define('mail/static/src/models/messaging/messaging.js', function (require) 'use strict'; const { registerNewModel } = require('mail/static/src/model/model_core.js'); -const { attr, many2one, one2one } = require('mail/static/src/model/model_field.js'); +const { attr, many2one, one2many, one2one } = require('mail/static/src/model/model_field.js'); function factory(dependencies) { @@ -158,17 +158,13 @@ function factory(dependencies) { } Messaging.fields = { - cannedResponses: attr({ - default: {}, - }), + cannedResponses: one2many('mail.canned_response'), chatWindowManager: one2one('mail.chat_window_manager', { default: [['create']], inverse: 'messaging', isCausal: true, }), - commands: attr({ - default: {}, - }), + commands: one2many('mail.channel_command'), currentPartner: one2one('mail.partner'), currentUser: one2one('mail.user'), device: one2one('mail.device', { |
