odoo/odoo#203842

Created by fw-bot
Merged at 1802d89539a6239d8f1a1bdf1299d8a63334286d

Statuses:

label
odoo-dev:18.0-16.0-microsoft_calendar-dont_sync_existing_events-gdpf-421583-fw
head
832c791b6761de865a1e0e6f41a814df1ad3d7e1
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: #200957
Forward-Port-Of: #185911