[FIX] mail: make some registry access more tolerant
bzr revid: rco@openerp.com-20130329145652-ux8g42u063015zy9
This commit is contained in:
parent
96ad608854
commit
fb4b655139
|
@ -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'))
|
||||
|
|
Loading…
Reference in New Issue