[FIX] mail: compose wizard: fixed subtype.

bzr revid: tde@openerp.com-20130226164448-hpqb4bl05pzwex97
This commit is contained in:
Thibault Delavallée
2013-02-26 17:44:48 +01:00
parent 4680851ab4
commit b23987b75f
+3 -3
View File
@@ -238,9 +238,9 @@ class mail_compose_message(osv.TransientModel):
post_values['recipient_ids'] = post_values.pop('partner_ids')
self.pool.get('mail.mail').create(cr, uid, post_values, context=context)
else:
subtype = False
if wizard.notify:
subtype = 'mail.mt_comment'
subtype = 'mail.mt_comment'
if mass_mail_mode and not wizard.notify:
subtype = False
msg_id = active_model_pool.message_post(cr, uid, [res_id], type='comment', subtype=subtype, context=context, **post_values)
# mass_mailing, post without notify: notify specific partners
if mass_mail_mode and not wizard.notify and post_values['partner_ids']: