[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user