[FIX] google_calendar: don't send mail from calendar when date has been changed.

If a meeting has been changed in google, a mail has been already sent.
This commit is contained in:
Jeremy Kersten 2015-02-24 18:18:25 +01:00
parent 22606c8905
commit 3050e35d31
1 changed files with 1 additions and 0 deletions

View File

@ -502,6 +502,7 @@ class google_calendar(osv.AbstractModel):
rrule = [rule for rule in single_event_dict["recurrence"] if rule.startswith("RRULE:")][0][6:]
result['rrule'] = rrule
context = dict(context or {}, no_mail_to_attendees=True)
if type == "write":
res = calendar_event.write(cr, uid, event['id'], result, context=context)
elif type == "copy":