[IMP]: change type from comment to email when send a compose mail
authorajay javiya (OpenERP) <aja@tinyerp.com>
Tue, 24 Sep 2013 12:47:51 +0000 (18:17 +0530)
committerajay javiya (OpenERP) <aja@tinyerp.com>
Tue, 24 Sep 2013 12:47:51 +0000 (18:17 +0530)
bzr revid: aja@tinyerp.com-20130924124751-aiofmruy99ruah3h

addons/mail/wizard/mail_compose_message.py

index f129e5b..574edbe 100644 (file)
@@ -271,7 +271,7 @@ class mail_compose_message(osv.TransientModel):
                         context = dict(context,
                                        mail_notify_force_send=False,  # do not send emails directly but use the queue instead
                                        mail_create_nosubscribe=True)  # add context key to avoid subscribing the author
-                    active_model_pool.message_post(cr, uid, [res_id], type='comment', subtype=subtype, context=context, **mail_values)
+                    active_model_pool.message_post(cr, uid, [res_id], type='email', subtype=subtype, context=context, **mail_values)
 
         return {'type': 'ir.actions.act_window_close'}