From 84dd711ce33ae83e5490a6ebe7a9de7ecd8deb81 Mon Sep 17 00:00:00 2001 From: Yannick Tivisse Date: Mon, 8 Aug 2016 15:19:40 +0200 Subject: [PATCH] [MIG] mass_mailing: Remaining self.pool in 'message_route_check_bounce' --- addons/mass_mailing/models/mail_thread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mass_mailing/models/mail_thread.py b/addons/mass_mailing/models/mail_thread.py index 478835d0e27..1c0c8a38478 100644 --- a/addons/mass_mailing/models/mail_thread.py +++ b/addons/mass_mailing/models/mail_thread.py @@ -43,7 +43,7 @@ class MailThread(models.AbstractModel): bounced_thread_id = stat.res_id _logger.info('Routing mail from %s to %s with Message-Id %s: bounced mail from mail %s, model: %s, thread_id: %s', email_from, email_to, message_id, bounced_mail_id, bounced_model, bounced_thread_id) - if bounced_model and bounced_model in self.pool and hasattr(self.env[bounced_model], 'message_receive_bounce') and bounced_thread_id: + if bounced_model and bounced_model in self.env and hasattr(self.env[bounced_model], 'message_receive_bounce') and bounced_thread_id: self.env[bounced_model].browse(bounced_thread_id).message_receive_bounce(mail_id=bounced_mail_id) return False