Odoo's Mergebot 18d6b4a3fe [FW][FIX] calendar: hide 'sync' options from users
## Issues

- When the google and outlook sync plugins are not installed the admin user should see an option to install them from the calendar but other users should not see anything.

- The 'groups' guard would have prevented regular users from syncing their calendar at all if it had worked

- Users can get an obtuse error message if the administrator has not configured the installed sync modules

## Fix

- Replaces the 'groups' attribute in the calendar controller template with a t-if and a dynamic check as OWL doesn't process 'groups'.

- Update the structure of the calendar sync template to facilitate overriding the display conditions
- Update the inherits to override the display conditions and allow anyone to see the sync button once a module is installed

- Update the code that handles clicking 'sync' to throw the same error as it would have for other misconfigurations

task - 3056311

closes odoo/odoo#106517

Forward-port-of: odoo/odoo#105461
Related: odoo/enterprise#34382
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2022-11-25 17:56:32 +01:00
2022-10-06 14:56:52 +02:00
2022-11-25 09:53:25 +01:00
…
…
…
…

Build Status Tech Doc Help Nightly Builds

Odoo

Odoo is a suite of web based open source business apps.

The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...

Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.

Getting started with Odoo

For a standard installation please follow the Setup instructions from the documentation.

To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials

S
Description
No description provided
Readme LGPL-3.0
3.4 GiB
Languages
Python 49.6%
JavaScript 47.8%
SCSS 2%
CSS 0.3%
HTML 0.2%