diff options
| author | Sébastien Theys <seb@odoo.com> | 2020-08-05 14:03:05 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2020-08-05 15:09:34 +0000 |
| commit | 9216bdcb6f0bbb20900a33bbf7283e6e4fda1b2c (patch) | |
| tree | ce2c02403afc038f552436997fb3ba9f3ab1c1ac /addons/mail/static/src/models/messaging | |
| parent | 9432d547053605a0807e82499123c0deede23d6b (diff) | |
[FIX] mail: clean up JS relations by storing records
Remove the support and the conversion from record to localId and back from
localId to record.
Part of task-2308312
closes odoo/odoo#55481
X-original-commit: fc5e8be4e65518770a281f0dffae07854d20073a
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/models/messaging')
| -rw-r--r-- | addons/mail/static/src/models/messaging/messaging.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/addons/mail/static/src/models/messaging/messaging.js b/addons/mail/static/src/models/messaging/messaging.js index b58de718cde..a4e5d27eced 100644 --- a/addons/mail/static/src/models/messaging/messaging.js +++ b/addons/mail/static/src/models/messaging/messaging.js @@ -132,7 +132,7 @@ function factory(dependencies) { default: {}, }), chatWindowManager: one2one('mail.chat_window_manager', { - autocreate: true, + default: [['create']], inverse: 'messaging', isCausal: true, }), @@ -142,15 +142,15 @@ function factory(dependencies) { currentPartner: one2one('mail.partner'), currentUser: one2one('mail.user'), device: one2one('mail.device', { - autocreate: true, + default: [['create']], isCausal: true, }), dialogManager: one2one('mail.dialog_manager', { - autocreate: true, + default: [['create']], isCausal: true, }), discuss: one2one('mail.discuss', { - autocreate: true, + default: [['create']], inverse: 'messaging', isCausal: true, }), @@ -163,7 +163,7 @@ function factory(dependencies) { */ inbox: one2one('mail.thread'), initializer: one2one('mail.messaging_initializer', { - autocreate: true, + default: [['create']], inverse: 'messaging', isCausal: true, }), @@ -171,11 +171,11 @@ function factory(dependencies) { default: false, }), locale: one2one('mail.locale', { - autocreate: true, + default: [['create']], isCausal: true, }), messagingMenu: one2one('mail.messaging_menu', { - autocreate: true, + default: [['create']], inverse: 'messaging', isCausal: true, }), @@ -184,11 +184,11 @@ function factory(dependencies) { */ moderation: one2one('mail.thread'), notificationGroupManager: one2one('mail.notification_group_manager', { - autocreate: true, + default: [['create']], isCausal: true, }), notificationHandler: one2one('mail.messaging_notification_handler', { - autocreate: true, + default: [['create']], inverse: 'messaging', isCausal: true, }), |
