[FIX] google_calendar: Avoid syncing events several times

Could happen when a partner is linked to several users.

closes odoo/odoo#51983

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
Bruno Boi
2020-06-16 12:15:40 +00:00
committed by Yannick Tivisse
parent fcf616c2e6
commit 1c340b601f
@@ -87,7 +87,7 @@ class RecurrenceRule(models.Model):
return synced_recurrences
def _get_sync_domain(self):
return [('calendar_event_ids.partner_id.user_ids', 'in', self.env.user.id)]
return [('calendar_event_ids.user_id', '=', self.env.user.id)]
@api.model
def _odoo_values(self, google_recurrence, default_reminders=()):