From a8631c588f3ae9fbf2fdab87883d411e71c7abc1 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 4c7dad2..868bc78 100644 --- a/mail_tracking/models/mail_resend_message.py +++ b/mail_tracking/models/mail_resend_message.py @@ -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 = {