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/659/head
parent
7d46924b29
commit
15d1b52669
|
@ -46,7 +46,7 @@ class MailResendMessage(models.TransientModel):
|
||||||
tracking_ids = wizard.mail_message_id.mail_tracking_ids.filtered(
|
tracking_ids = wizard.mail_message_id.mail_tracking_ids.filtered(
|
||||||
lambda x: x.partner_id in to_send
|
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 = {
|
||||||
|
|
Loading…
Reference in New Issue