[FIX] mail_tracking

When a user try to resend message gets an error stating that it's only allowed for users who belong to the Administration/Settings group
pull/659/head
nmadhoc 2021-01-21 08:53:18 -03:00
parent 7d46924b29
commit 15d1b52669
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class MailResendMessage(models.TransientModel):
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 = {