From b23987b75f323fcfafb9b7056bb9c9c16301c08e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Tue, 26 Feb 2013 17:44:48 +0100 Subject: [PATCH] [FIX] mail: compose wizard: fixed subtype. bzr revid: tde@openerp.com-20130226164448-hpqb4bl05pzwex97 --- addons/mail/wizard/mail_compose_message.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/mail/wizard/mail_compose_message.py b/addons/mail/wizard/mail_compose_message.py index f646b884ad8..8445da3e40a 100644 --- a/addons/mail/wizard/mail_compose_message.py +++ b/addons/mail/wizard/mail_compose_message.py @@ -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']: