From 7838abef1f0ee4ca0c502e203ab6fa8b596bdf5d Mon Sep 17 00:00:00 2001 From: "qdp-launchpad@tinyerp.com" <> Date: Tue, 17 Aug 2010 15:00:44 +0200 Subject: [PATCH] [IMP] crm: crm objects have to use the email_cc field to compute the CC where to forward the incoming mails, instead of the list of mails build by the mailgate bzr revid: qdp-launchpad@tinyerp.com-20100817130044-45z233rdzd2wu2v5 --- addons/crm/crm.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/addons/crm/crm.py b/addons/crm/crm.py index 12edce6e059..779b37b5b31 100644 --- a/addons/crm/crm.py +++ b/addons/crm/crm.py @@ -480,6 +480,20 @@ class crm_case(object): def format_mail(self, obj, body): return self.pool.get('base.action.rule').format_mail(obj, body) + def message_followers(self, cr, uid, ids, context=None): + """ Get a list of emails of the people following this thread + """ + res = {} + for case in self.browse(cr, uid, ids, context=context): + l=[] + if case.email_cc: + l.append(case.email_cc) + if case.user_id: + l.append(case.user_id.email) + res[case.id] = l + return res + + class crm_case_section(osv.osv): """Sales Team"""