From cffbefcc07656c8e9004afebcf04cc1ca732eae1 Mon Sep 17 00:00:00 2001 From: nmadhoc Date: Thu, 21 Jan 2021 08:53:18 -0300 Subject: [PATCH] [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 --- mail_tracking/models/mail_resend_message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail_tracking/models/mail_resend_message.py b/mail_tracking/models/mail_resend_message.py index 8758f9773..049fe3647 100644 --- a/mail_tracking/models/mail_resend_message.py +++ b/mail_tracking/models/mail_resend_message.py @@ -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 = {