From 75ed151ad937d423fdceb61a41c3464bb2a4b908 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Tue, 11 Jun 2013 15:33:14 +0200 Subject: [PATCH] [FIX]mail: mail_thread, method message_capable_models was not returning all message capable models bzr revid: dle@openerp.com-20130611133314-pq9bmj7af61k7swe --- 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 ef9eac65451..9ebd67f0eb5 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -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