From fb4b655139d5a00f605ea954dfee2df77e457778 Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Fri, 29 Mar 2013 15:56:52 +0100 Subject: [PATCH] [FIX] mail: make some registry access more tolerant bzr revid: rco@openerp.com-20130329145652-ux8g42u063015zy9 --- addons/mail/mail_thread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'))