feature/odoo18 #2

Merged
administrator merged 43 commits from feature/odoo18 into develop 2025-05-22 16:16:43 +05:30
1 changed files with 1 additions and 2 deletions
Showing only changes of commit b7ccb5a3e0 - Show all commits

View File

@ -201,8 +201,7 @@ class DiscussChannel(models.Model):
subtype_xmlid='mail.mt_note',
)
if partners_to_notify == channel.whatsapp_partner_id and wa_account_id.notify_user_ids.partner_id:
partners_to_notify += wa_account_id.notify_user_ids.partner_id
partners_to_notify = self.env['res.partner'].browse(list(set(partners_to_notify.ids)))
partners_to_notify |= wa_account_id.notify_user_ids.partner_id
channel.channel_member_ids = [Command.clear()] + [Command.create({'partner_id': partner.id}) for partner in partners_to_notify]
channel._broadcast(partners_to_notify.ids)
return channel