summaryrefslogtreecommitdiff
path: root/addons/mail/mail_thread.py
diff options
context:
space:
mode:
authorAntony Lesuisse <al@openerp.com>2011-12-09 15:28:39 +0100
committerAntony Lesuisse <al@openerp.com>2011-12-09 15:28:39 +0100
commitc3bbd5c2d7db7f46fe1535edaaf60e314f553cf0 (patch)
tree020ad0636690f999ee8599cd81ab914669c403ad /addons/mail/mail_thread.py
parent9c15cb860f347ae95d2c75bcdd231666f2c5c553 (diff)
[MERGE] manual outlook plugin no binary yet
bzr revid: al@openerp.com-20111209142839-wffacq9r3ckjxi3s
Diffstat (limited to 'addons/mail/mail_thread.py')
-rw-r--r--addons/mail/mail_thread.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py
index c8f7da9a5bb..70b536296bf 100644
--- a/addons/mail/mail_thread.py
+++ b/addons/mail/mail_thread.py
@@ -58,6 +58,14 @@ class mail_thread(osv.osv):
'message_ids': fields.one2many('mail.message', 'res_id', 'Messages', readonly=True),
}
+ def message_capable_models(self, cr, uid, context=None):
+ ret_dict = {}
+ for model_name in self.pool.obj_list():
+ model = self.pool.get(model_name)
+ if 'mail.thread' in getattr(model, '_inherit', []):
+ ret_dict[model_name] = model._description
+ return ret_dict
+
def message_thread_followers(self, cr, uid, ids, context=None):
"""Returns a list of email addresses of the people following
this thread, including the sender of each mail, and the