[FIX] calendar: also reset `res_id` when sending mail to attendees

This commit is contained in:
Christophe Simonis 2017-01-17 14:44:50 +01:00
parent 8f1c2bfc91
commit 94410c83e1
1 changed files with 1 additions and 0 deletions

View File

@ -220,6 +220,7 @@ class calendar_attendee(osv.Model):
'datas_fname': 'invitation.ics',
'datas': str(ics_file).encode('base64')})]
vals['model'] = None # We don't want to have the mail in the tchatter while in queue!
vals['res_id'] = False
the_mailmess = mail_pool.browse(cr, uid, mail_id, context=context).mail_message_id
mailmess_pool.write(cr, uid, [the_mailmess.id], vals, context=context)
mail_ids.append(mail_id)