Skip to content
Snippets Groups Projects
Commit d4f91b3f authored by Denis Ledoux's avatar Denis Ledoux
Browse files

[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
parent 377277c9
Branches
Tags
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment