[FIX] mail: make some registry access more tolerant

bzr revid: rco@openerp.com-20130329145652-ux8g42u063015zy9
This commit is contained in:
Raphael Collet 2013-03-29 15:56:52 +01:00
parent 96ad608854
commit fb4b655139
1 changed files with 1 additions and 1 deletions

View File

@ -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'))