[IMP]: crm: Minor improvements

bzr revid: rpa@tinyerp.com-20100708055725-6hcm4n74d3hnn9cs
This commit is contained in:
rpa (Open ERP)
2010-07-08 11:27:25 +05:30
parent d5c983ef03
commit 1d708ee12a
2 changed files with 1 additions and 2 deletions
@@ -143,7 +143,6 @@ class crm_phonecall_report(osv.osv):
extract('epoch' from (c.date_open-c.create_date))/(3600*24) as delay_open
from
crm_phonecall c
where c.categ_id in (select res_id from ir_model_data where (name = 'categ_phone1' or name ='categ_phone2') and model = 'crm.case.categ')
)""")
crm_phonecall_report()
+1 -1
View File
@@ -103,7 +103,7 @@ class crm_send_new_email2(osv.osv_memory):
ref_id = hist.ref_id
case = model_pool.browse(cr, uid, res_id)
emails = [obj.email_to]
email_cc = (obj.email_cc or '').split(',')
email_cc = obj.email_cc and obj.email_cc.split(',') or ''
emails = filter(None, emails)
body = obj.text