diff options
| author | Sébastien Theys <seb@odoo.com> | 2020-07-31 13:48:31 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2020-07-31 14:43:15 +0000 |
| commit | 0d4cb52b9dcd56cb463f2168eaea7a0e8fc2d9a8 (patch) | |
| tree | 109758dce03461b2cc8e0327ab833f0dc19790cf /addons/mail/static/src/models/notification_group_manager | |
| parent | 7a1bfa793a6e0d47b1574cd9cc44f6dd00d910f2 (diff) | |
[FIX] mail: batch create/insert of JS model for performance
PR: #55261
Part of task-2308312
closes odoo/odoo#55266
X-original-commit: eded5f6372d4f1cffd1a361bd8fa7fd8f1f8ae9e
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/models/notification_group_manager')
| -rw-r--r-- | addons/mail/static/src/models/notification_group_manager/notification_group_manager.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/mail/static/src/models/notification_group_manager/notification_group_manager.js b/addons/mail/static/src/models/notification_group_manager/notification_group_manager.js index be7bef8352a..9c7c38ef52b 100644 --- a/addons/mail/static/src/models/notification_group_manager/notification_group_manager.js +++ b/addons/mail/static/src/models/notification_group_manager/notification_group_manager.js @@ -17,6 +17,7 @@ function factory(dependencies) { group.delete(); } const groups = []; + // TODO batch insert, better logic task-2258605 this.env.messaging.currentPartner.failureNotifications.forEach(notification => { const thread = notification.message.originThread; // Notifications are grouped by model and notification_type. |
