[FIX]: crm: Fixed problem of sending a new mail
bzr revid: rpa@tinyerp.com-20100426134152-e961yh0s7vuxkfox
This commit is contained in:
@@ -76,7 +76,7 @@ class crm_send_new_email(osv.osv_memory):
|
||||
|
||||
case = case_pool.browse(cr, uid, res_id)
|
||||
if context.get('mail', 'new') == 'new':
|
||||
message_id = case.history_line[0].message_id
|
||||
message_id = res_id
|
||||
else:
|
||||
hist = hist_obj.browse(cr, uid, res_id)
|
||||
message_id = hist.message_id
|
||||
|
||||
Reference in New Issue
Block a user