odoo/odoo#203967

Created by fw-bot
Merged at 1143c95e9022f97d5f293b790649f00a031fd8c4

Statuses:

label
odoo-dev:saas-18.2-16.0-microsoft_calendar-dont_sync_existing_events-gdpf-426259-fw
head
6d926658423186c2e4398a5cf1f956d99098d9b1
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