Merge PR #666 into 12.0

Signed-off-by pedrobaeza
pull/667/head
OCA-git-bot 2021-02-03 19:57:21 +00:00
commit 8586bbad85
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class MailResendMessage(models.TransientModel):
# Reset mail.tracking.email state
tracking_ids = wizard.mail_message_id.mail_tracking_ids\
.filtered(lambda x: x.partner_id in to_send)
tracking_ids.write({'state': False})
tracking_ids.sudo().write({'state': False})
# Send bus notifications to update Discuss and
# mail_failed_messages widget
notification = {