diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py index 3c81af924e5..b082a52a9a9 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -528,7 +528,7 @@ class mail_thread(osv.AbstractModel): return routes # 3. Fallback to the provided parameters, if they work - model_pool = self.pool[model] + model_pool = self.pool.get(model) if not thread_id: # Legacy: fallback to matching [ID] in the Subject match = tools.res_re.search(decode_header(message, 'Subject'))