summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2014-12-09 16:34:35 +0100
committerDenis Ledoux <dle@odoo.com>2014-12-09 16:34:35 +0100
commitd4f91b3f984739c247659078aed7b8fdf8d6563a (patch)
tree4ee45c079a3e271eed611bae898263c665977840
parent377277c94e81dd320c92b72d5f1dcb2ddb00b902 (diff)
[FIX] google_calendar: recurrent event syncrhonization
When an attendee is added exceptionnally in an instance of a recurrent event, do not try to sync the basic recurrent event in his calendar
-rw-r--r--addons/google_calendar/google_calendar.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/google_calendar/google_calendar.py b/addons/google_calendar/google_calendar.py
index 3d1a87661d2..39eb1c6b327 100644
--- a/addons/google_calendar/google_calendar.py
+++ b/addons/google_calendar/google_calendar.py
@@ -624,6 +624,8 @@ class google_calendar(osv.AbstractModel):
new_google_internal_event_id = False
source_event_record = ev_obj.browse(cr, uid, att.event_id.recurrent_id, context)
source_attendee_record_id = att_obj.search(cr, uid, [('partner_id', '=', myPartnerID), ('event_id', '=', source_event_record.id)], context=context)
+ if not source_attendee_record_id:
+ continue
source_attendee_record = att_obj.browse(cr, uid, source_attendee_record_id, context)[0]
if att.event_id.recurrent_id_date and source_event_record.allday and source_attendee_record.google_internal_event_id: