[FIX] website_slides: fix slide.channel mail completed
PURPOSE Fix the 'multi' behavior when sending completion emails for slide.channels. SPECS There was a typo in the 'slide.channel#_send_completed_mail' method that prevented it from correctly working in "multi" mode. A new test was introduced to ensure the fix is working. LINKS Task 2170708 closes odoo/odoo#61004 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
@@ -105,7 +105,7 @@ class ChannelUsersRelation(models.Model):
|
||||
continue
|
||||
|
||||
email_values.update(
|
||||
author_id=self.channel_id.user_id.partner_id.id or self.env.company.partner_id.id,
|
||||
author_id=record.channel_id.user_id.partner_id.id or self.env.company.partner_id.id,
|
||||
auto_delete=True,
|
||||
recipient_ids=[(4, pid) for pid in email_values['partner_ids']],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user