Skip to content

Commit

Permalink
[FIX] *_calendar: neuter Google & Microsoft Calendar
Browse files Browse the repository at this point in the history
This addresses an issue with the current Google and Microsoft
Calendar synchronization feature in Odoo. It aims to prevent
inadvertent modifications on calendars in a duplicate database.

opw-3382489

closes odoo#132698

X-original-commit: 9c94804
Signed-off-by: Arnaud Joset (arj) <arj@odoo.com>
Signed-off-by: Pedram Bi Ria (pebr) <pebr@odoo.com>
  • Loading branch information
pedrambiria committed Aug 22, 2023
1 parent 11b9767 commit 13656c7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addons/google_calendar/data/neutralize.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- neutralization of Google calendar
UPDATE google_calendar_credentials
SET calendar_rtoken = NULL,
calendar_token = NULL,
synchronization_stopped = True;
5 changes: 5 additions & 0 deletions addons/microsoft_calendar/data/neutralize.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- neutralization of Microsoft calendar
UPDATE res_users
SET microsoft_calendar_token = NULL,
microsoft_calendar_rtoken = NULL,
microsoft_synchronization_stopped = True;

0 comments on commit 13656c7

Please sign in to comment.