odoo/odoo#203979

Created by fw-bot
Merged at cc64fd0bfdb1b0484ad46f74c4d0f0b6ad0d3604

Statuses:

label
odoo-dev:master-16.0-microsoft_calendar-dont_sync_existing_events-gdpf-426352-fw
head
687f886c7d3290da59ed6141d180e8e27ceec1b8
merged
7 months ago by Fun Subscription - Sign - Cal, Gabriel de Paula Felix (gdpf)
odoo/odoo
16.0 #185911
17.0 #199824
saas-17.4 #200957
18.0 #203842
saas-18.1 #203896
saas-18.2 #203967
saas-18.3
saas-18.4
19.0
master #203979

[FW][IMP] microsoft_calendar: don't synchronize existing events

Before this commit, customers were facing problems during the first synchronization related to the abundance of invitations sent through Outlook from previously created events in Odoo side. This should not happen because most of the time it is not useful synchronizing events that were already created before starting the synchronization with Outlook (from feedbacks discussed with customers and internally).

After this commit, we no longer synchronize events that were created before the first synchronization of any user in a database if we don't find any token created in it (i.e. if no user synchronized its Odoo Calendar with Outlook before this improvement). In case of any user already have synchronized its calendar with Outlook, we won't change the synchronization behavior (since the biggest part of the invitations were already sent).

task-4294884

Forward-Port-Of: #203896
Forward-Port-Of: #185911