[FIX] mail: internal note recipients

In some cases internal notes could be sent to more people than expected.
The correct list of recipients was computed but not assigned. Doo.
This commit is contained in:
Thibault Delavallée
2015-11-17 10:49:20 +01:00
parent feb2ede0d6
commit 69ed801979
+1 -1
View File
@@ -892,7 +892,7 @@ class Message(models.Model):
('res_id', '=', self.res_id)
]).filtered(lambda fol: self.subtype_id in fol.subtype_ids)
if self.subtype_id.internal:
followers.filtered(lambda fol: fol.partner_id.user_ids and group_user in fol.partner_id.user_ids[0].mapped('groups_id'))
followers = followers.filtered(lambda fol: fol.partner_id.user_ids and group_user in fol.partner_id.user_ids[0].mapped('groups_id'))
channels = self_sudo.channel_ids | followers.mapped('channel_id')
partners = self_sudo.partner_ids | followers.mapped('partner_id')
else: