diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-01-17 14:44:50 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-01-17 14:48:35 +0100 |
| commit | 94410c83e18729db6942f2b2190df9a50cd3c19d (patch) | |
| tree | 4fe5dcd18907c054956bbed0e51222e9501ce6b9 | |
| parent | 8f1c2bfc9183d73549d3cf3a771edf2232eeeb12 (diff) | |
[FIX] calendar: also reset `res_id` when sending mail to attendees
| -rw-r--r-- | addons/calendar/calendar.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/calendar/calendar.py b/addons/calendar/calendar.py index 8e6896f920d..8459dfcd67d 100644 --- a/addons/calendar/calendar.py +++ b/addons/calendar/calendar.py @@ -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) |
