summaryrefslogtreecommitdiff
path: root/addons/mass_mailing/models/mail_thread.py
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2016-08-08 15:19:40 +0200
committerYannick Tivisse <yti@odoo.com>2016-08-09 10:29:06 +0200
commit84dd711ce33ae83e5490a6ebe7a9de7ecd8deb81 (patch)
tree854fb908a7b1d47979e4f5c907949f124438b1cf /addons/mass_mailing/models/mail_thread.py
parent897627498bd42a0729bbef21bc1f5443795f20a9 (diff)
[MIG] mass_mailing: Remaining self.pool in 'message_route_check_bounce'
Diffstat (limited to 'addons/mass_mailing/models/mail_thread.py')
-rw-r--r--addons/mass_mailing/models/mail_thread.py2
1 files changed, 1 insertions, 1 deletions
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