[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/666/head
nmadhoc 2021-01-21 08:53:18 -03:00 committed by Alexandre D. Díaz
parent 05f542e385
commit cffbefcc07
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class MailResendMessage(models.TransientModel):
# Reset mail.tracking.email state # Reset mail.tracking.email state
tracking_ids = wizard.mail_message_id.mail_tracking_ids\ tracking_ids = wizard.mail_message_id.mail_tracking_ids\
.filtered(lambda x: x.partner_id in to_send) .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 # Send bus notifications to update Discuss and
# mail_failed_messages widget # mail_failed_messages widget
notification = { notification = {