diff options
| author | Xavier-Do <xdo@odoo.com> | 2019-07-29 15:48:56 +0000 |
|---|---|---|
| committer | Xavier-Do <xdo@odoo.com> | 2019-08-05 15:04:28 +0000 |
| commit | a55c78836f172dba1cfa6db3df0e927a9c7e6471 (patch) | |
| tree | ecb273c6e45dcf75a434f5bbd810545ae7a30e40 /addons/web/static/src/xml/base.xml | |
| parent | 42b3a56a439df8c2c7357c11d0b2660723d9deb7 (diff) | |
[REF] mail: remove notified_partner_ids from mark_all_as_read
mark_all_as_read is using notified_partner_ids to filter
the messages to use. But anyway, the notification will
be filtered on partner right after that.
Since if we have a domain, the message set will be quite small,
(scope of a thread) we search all those messages.
If not, we actually avoid to search on message and go right
to the notifications.
Reading the message_ids will garantee to have the minimal
set of message that where actually passed from unread to read.
Since data should not be in cache at this time and mark_all_as_read
is usually called alone, we prefer to use cache and perform a read
immediatly.
Task-ID 402597
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
0 files changed, 0 insertions, 0 deletions
