mirror of https://github.com/OCA/social.git
[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 grouppull/666/head
parent
05f542e385
commit
cffbefcc07
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue