From 7cb977fc3c28468a87189f28c7fde58a9c18c2c3 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Tue, 17 Jan 2017 14:44:50 +0100 Subject: [PATCH] [FIX] calendar: also reset `res_id` when sending mail to attendees --- addons/calendar/calendar.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/calendar/calendar.py b/addons/calendar/calendar.py index 591a0820c24..5f8972acc84 100644 --- a/addons/calendar/calendar.py +++ b/addons/calendar/calendar.py @@ -221,6 +221,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)