[FIX] crm: crash send new email wizard

lp bug: https://launchpad.net/bugs/539207 fixed

bzr revid: hmo@tinyerp.com-20100317095254-glwv4kwumpfc0834
This commit is contained in:
Harry (Open ERP)
2010-03-17 15:22:54 +05:30
parent 4f77a10054
commit d920775050
2 changed files with 2 additions and 6 deletions
+1 -1
View File
@@ -357,7 +357,7 @@ class crm_case(osv.osv):
'section_id': case.section_id.id
}
obj = self.pool.get('crm.case.log')
if history and case.description:
if history:
obj = self.pool.get('crm.case.history')
data['description'] = details or case.description
data['email'] = email or \
@@ -72,11 +72,7 @@ def _mass_mail_send(self, cr, uid, data, context):
pool = pooler.get_pool(cr.dbname)
case_pool=pool.get(data.get('model'))
case = case_pool.browse(cr,uid,data['ids'])[0]
case_pool.write(cr, uid, [case.id], {
#'som': False,
'canal_id': False,
})
case = case_pool.browse(cr,uid,data['ids'])[0]
emails = [data['form']['to']] + (data['form']['cc'] or '').split(',')
emails = filter(None, emails)
body = data['form']['text']