[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:
parent
34fe1d211d
commit
8be3cabf8a
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue