From 13db30cba55b13a3ffb653ffb63aa0dc69d7a208 Mon Sep 17 00:00:00 2001 From: Renaud Thiry Date: Tue, 15 Nov 2022 15:44:09 +0000 Subject: [PATCH] [FIX] calendar: show calendar sync when installed ## Issue Regular users were not able to see the sync button used to sync with external calendar services even after these services were configured ## Fix Conditionally display the whole sync section until one of the services is configured. Override the display conditions when one of the relevant modules are installed. task - 3056311 X-original-commit: 29f820cfd421859a2b480725ba2a81a515509b88 Part-of: odoo/odoo#106517 --- .../attendee_calendar_controller.xml | 26 ++++++++++--------- .../google_calendar_controller.xml | 3 +++ .../microsoft_calendar_controller.xml | 3 +++ 3 files changed, 20 insertions(+), 12 deletions(-) diff --git a/addons/calendar/static/src/views/attendee_calendar/attendee_calendar_controller.xml b/addons/calendar/static/src/views/attendee_calendar/attendee_calendar_controller.xml index 968e65fd26d..2184962d6f8 100644 --- a/addons/calendar/static/src/views/attendee_calendar/attendee_calendar_controller.xml +++ b/addons/calendar/static/src/views/attendee_calendar/attendee_calendar_controller.xml @@ -2,19 +2,21 @@ -
- Synchronize with: -
-
-
- +
+
+ Synchronize with:
-
- +
+
+ +
+
+ +
diff --git a/addons/google_calendar/static/src/views/google_calendar/google_calendar_controller.xml b/addons/google_calendar/static/src/views/google_calendar/google_calendar_controller.xml index f97a9334d1d..d3bb0b13e28 100644 --- a/addons/google_calendar/static/src/views/google_calendar/google_calendar_controller.xml +++ b/addons/google_calendar/static/src/views/google_calendar/google_calendar_controller.xml @@ -1,6 +1,9 @@ + + true +