From cd5dcb8f9816bdefda7db2796a7255ba57f6c298 Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Wed, 27 Dec 2017 10:46:50 +0100 Subject: [PATCH] [FIX] mail: notify 'inbox' partners When - a user A had set 'notifications handled by Odoo' - a user B sent a @userA message Before this commit, the user wasn't notified in the inbox needaction After this commit, he is OPW 801315 --- addons/mail/models/mail_message.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/mail/models/mail_message.py b/addons/mail/models/mail_message.py index 3194eb15033..719baf8cc94 100644 --- a/addons/mail/models/mail_message.py +++ b/addons/mail/models/mail_message.py @@ -845,6 +845,9 @@ class Message(models.Model): ('channel_ids', 'in', email_channels.ids), ('email', '!=', self_sudo.author_id and self_sudo.author_id.email or self_sudo.email_from), ])._notify(self, force_send=force_send, send_after_commit=send_after_commit, user_signature=user_signature) + + notif_users.mapped('partner_id')._notify_by_chat(self) + channels_sudo._notify(self) # Discard cache, because child / parent allow reading and therefore