diff options
Diffstat (limited to 'addons/mail/static/src/models/thread_cache')
| -rw-r--r-- | addons/mail/static/src/models/thread_cache/thread_cache.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/addons/mail/static/src/models/thread_cache/thread_cache.js b/addons/mail/static/src/models/thread_cache/thread_cache.js index 4fdcaed6114..81027d665ba 100644 --- a/addons/mail/static/src/models/thread_cache/thread_cache.js +++ b/addons/mail/static/src/models/thread_cache/thread_cache.js @@ -234,7 +234,13 @@ function factory(dependencies) { } else if (thread === this.env.messaging.moderation) { return domain.concat([['need_moderation', '=', true]]); } else { - return domain.concat([['model', '=', thread.model], ['res_id', '=', thread.id]]); + // Avoid to load user_notification as these messages are not + // meant to be shown on chatters. + return domain.concat([ + ['message_type', '!=', 'user_notification'], + ['model', '=', thread.model], + ['res_id', '=', thread.id], + ]); } } |
