[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
This commit is contained in:
parent
852d148e1d
commit
7838abef1f
|
@ -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"""
|
||||
|
||||
|
|
Loading…
Reference in New Issue