[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:
+1
-1
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user