[IMP]: crm: Minor improvements
bzr revid: rpa@tinyerp.com-20100708055725-6hcm4n74d3hnn9cs
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user