[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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user