From 8be3cabf8aba609ccc72456750587e412f187a68 Mon Sep 17 00:00:00 2001 From: David Monjoie Date: Mon, 19 Jan 2015 10:40:29 +0100 Subject: [PATCH] [FIX] mail: fixed notes logging using mail wizard Seems like the wizard was still looking for the old js context hack from before d5a8905 instead of testing against the new field --- addons/mail/wizard/mail_compose_message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/wizard/mail_compose_message.py b/addons/mail/wizard/mail_compose_message.py index 4fc7de78333..3f2db49b4b0 100644 --- a/addons/mail/wizard/mail_compose_message.py +++ b/addons/mail/wizard/mail_compose_message.py @@ -234,7 +234,7 @@ class mail_compose_message(osv.TransientModel): self.pool['mail.mail'].create(cr, uid, mail_values, context=context) else: subtype = 'mail.mt_comment' - if context.get('mail_compose_log') or (wizard.composition_mode == 'mass_post' and not wizard.notify): # log a note: subtype is False + if wizard.is_log or (wizard.composition_mode == 'mass_post' and not wizard.notify): # log a note: subtype is False subtype = False if wizard.composition_mode == 'mass_post': context = dict(context,