From d4f91b3f984739c247659078aed7b8fdf8d6563a Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Tue, 9 Dec 2014 16:34:35 +0100 Subject: [PATCH] [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 --- addons/google_calendar/google_calendar.py | 2 ++ 1 file changed, 2 insertions(+) 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: