[IMP]: change type from comment to email when send a compose mail

bzr revid: aja@tinyerp.com-20130924124751-aiofmruy99ruah3h
This commit is contained in:
ajay javiya (OpenERP) 2013-09-24 18:17:51 +05:30
parent 712eee6e3d
commit 5d95224114
1 changed files with 1 additions and 1 deletions

View 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'}