[IMP]: crm: Replying mail should contain global cc and cc of the last email

bzr revid: rpa@tinyerp.com-20100716122307-9qr5s2jbu9bwo4s1
This commit is contained in:
rpa (Open ERP)
2010-07-16 17:53:07 +05:30
parent 7893ee7364
commit 9f1acf85bf
+2 -1
View File
@@ -233,7 +233,8 @@ class crm_send_new_email(osv.osv_memory):
if 'subject' in fields:
res.update({u'subject': u'Re: %s' %(tools.ustr(hist.name or ''))})
if 'email_cc' in fields:
res.update({'email_cc': case.email_cc and tools.ustr(case.email_cc) or False})
email_cc = (case.email_cc and tools.ustr(case.email_cc) + ', ' or '') + (hist.email_cc or '')
res.update({'email_cc': email_cc})
if 'reply_to' in fields:
res.update({'reply_to': case.section_id.reply_to})
if 'state' in fields: