[FIX] crm : crm send mail wizard
authorHarry (Open ERP) <hmo@tinyerp.com>
Thu, 18 Mar 2010 12:43:28 +0000 (18:13 +0530)
committerHarry (Open ERP) <hmo@tinyerp.com>
Thu, 18 Mar 2010 12:43:28 +0000 (18:13 +0530)
bzr revid: hmo@tinyerp.com-20100318124328-or62rj1re35n5hfu

addons/crm/wizard/wizard_crm_send_email.py

index d6b3732..6501bf8 100644 (file)
@@ -56,11 +56,7 @@ def _mass_mail_send(self, cr, uid, data, context):
     model = hist_obj.log_id.model_id.model
     model_pool = pool.get(model)
     case = model_pool.browse(cr, uid, hist_obj.log_id.res_id)
-    model_pool._history(cr, uid, [case], _('Send'), history=True, email=False)
-    model_pool.write(cr, uid, [case.id], {
-                'som': False,
-                'canal_id': False,
-                })
+    model_pool._history(cr, uid, [case], _('Send'), history=True, email=False)    
     emails = [data['form']['to']] + (data['form']['cc'] or '').split(',')
     emails = filter(None, emails)
     body = data['form']['text']