[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
This commit is contained in:
David Monjoie 2015-01-19 10:40:29 +01:00
parent 34fe1d211d
commit 8be3cabf8a
1 changed files with 1 additions and 1 deletions

View File

@ -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,