odoo/odoo#185911

Created by Fun Subscription - Sign - Cal, Gabriel de Paula Felix (gdpf)
Merged at 39b6fe3bd7316b5bdc7519f3fe8f2d6425fd7e5f

Statuses:

label
odoo-dev:16.0-microsoft_calendar-dont_sync_existing_events-gdpf
head
d7ffa3f33e3d99443a8238e7309a038de6dd0b5c
merged
8 months ago by Misc, Arnaud Joset (arj)
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

[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