[FIX]mail: mail_thread, method message_capable_models was not returning all message capable models
bzr revid: dle@openerp.com-20130611133314-pq9bmj7af61k7swe
This commit is contained in:
@@ -436,7 +436,7 @@ class mail_thread(osv.AbstractModel):
|
||||
ret_dict = {}
|
||||
for model_name in self.pool.obj_list():
|
||||
model = self.pool.get(model_name)
|
||||
if 'mail.thread' in getattr(model, '_inherit', []):
|
||||
if hasattr(model, "message_process") and hasattr(model, "message_post"):
|
||||
ret_dict[model_name] = model._description
|
||||
return ret_dict
|
||||
|
||||
|
||||
Reference in New Issue
Block a user