[FIX]: crm: Fixed problem of sending a new mail

bzr revid: rpa@tinyerp.com-20100426134152-e961yh0s7vuxkfox
This commit is contained in:
rpa (Open ERP)
2010-04-26 19:11:52 +05:30
parent c2fbbe5865
commit 78c9835966
+1 -1
View File
@@ -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