From 5184eedc0edc0554571897b2f6acd8128f650ac3 Mon Sep 17 00:00:00 2001 From: "Anh Thao Pham (pta)" Date: Wed, 13 May 2020 12:10:51 +0000 Subject: [PATCH] [FIX] mail: fix cancelling of email failures - Configure your outgoing email server to be sure that a failure will be triggered when trying to send an email - Make sure you don't have enough sms credit to send a sms - Go to a contact page - Send a message to the contact via the chatter - An notification error should appear in the conversations icon in the systray - Send a sms to the contact - An notification error should appear in the conversations icon in the systray - Click on the "Mark as read" icon on the notification error for the email - A "Discard mail delivery failures" wizard will appear - Click on "DISCARD DELIVERY FAILURES" All email and sms delivery failures are discarded. Only the email delivery failures should be discarded. opw-2247617 closes odoo/odoo#51204 X-original-commit: d8c177969239a9bd6dcbd6654a914d40a6ba479f Signed-off-by: Jorge Pinna Puissant (jpp) --- addons/mail/wizard/mail_resend_cancel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/wizard/mail_resend_cancel.py b/addons/mail/wizard/mail_resend_cancel.py index 328579c25d0..1d3adad39aa 100644 --- a/addons/mail/wizard/mail_resend_cancel.py +++ b/addons/mail/wizard/mail_resend_cancel.py @@ -24,7 +24,7 @@ class MailResendCancel(models.TransientModel): FROM mail_message_res_partner_needaction_rel notif JOIN mail_message mes ON notif.mail_message_id = mes.id - WHERE notif.notification_status IN ('bounce', 'exception') + WHERE notif.notification_type = 'email' AND notif.notification_status IN ('bounce', 'exception') AND mes.model = %s AND mes.author_id = %s """, (wizard.model, author_id))