summaryrefslogtreecommitdiff
path: root/addons/base_setup
diff options
context:
space:
mode:
authorjbm-odoo <jbm@odoo.com>2020-04-21 13:08:35 +0000
committerjbm-odoo <jbm@odoo.com>2020-08-05 13:47:42 +0000
commit9dc3057e8eb82d9237457167641585655f249c3e (patch)
tree11975a957335d9dd3ce7f2dc0844fa8b5e7acff3 /addons/base_setup
parent78ef2ec8134b09d9732849a11ff8d9e1ac886bb5 (diff)
[ADD] calendar_microsoft: Synchronize Microsoft calendar with Odoo
TaskID 2223219 closes odoo/odoo#54936 Related: odoo/upgrade#1557 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/base_setup')
-rw-r--r--addons/base_setup/models/res_config_settings.py2
-rw-r--r--addons/base_setup/views/res_config_settings_views.xml14
2 files changed, 16 insertions, 0 deletions
diff --git a/addons/base_setup/models/res_config_settings.py b/addons/base_setup/models/res_config_settings.py
index 2248f46bfb1..04b695c141f 100644
--- a/addons/base_setup/models/res_config_settings.py
+++ b/addons/base_setup/models/res_config_settings.py
@@ -19,6 +19,8 @@ class ResConfigSettings(models.TransientModel):
module_base_import = fields.Boolean("Allow users to import data from CSV/XLS/XLSX/ODS files")
module_google_calendar = fields.Boolean(
string='Allow the users to synchronize their calendar with Google Calendar')
+ module_microsoft_calendar = fields.Boolean(
+ string='Allow the users to synchronize their calendar with Office 365 Calendar')
module_google_drive = fields.Boolean("Attach Google documents to any record")
module_google_spreadsheet = fields.Boolean("Google Spreadsheet")
module_auth_oauth = fields.Boolean("Use external authentication providers (OAuth)")
diff --git a/addons/base_setup/views/res_config_settings_views.xml b/addons/base_setup/views/res_config_settings_views.xml
index 8bfd02bae52..bda9ab28a96 100644
--- a/addons/base_setup/views/res_config_settings_views.xml
+++ b/addons/base_setup/views/res_config_settings_views.xml
@@ -243,6 +243,20 @@
</div>
<div class="col-12 col-lg-6 o_setting_box" id="sync_google_calendar_setting">
<div class="o_setting_left_pane">
+ <field name="module_microsoft_calendar" />
+ </div>
+ <div class="o_setting_right_pane">
+ <label string="Office 365 Calendar" for="module_microsoft_calendar"/>
+ <div class="text-muted">
+ Synchronize your calendar with Outlook
+ </div>
+ <div class="content-group" attrs="{'invisible': [('module_microsoft_calendar', '=', False)]}" id="msg_module_microsoft_calendar">
+ <div class="text-warning mt16"><strong>Save</strong> this page and come back here to set up the feature.</div>
+ </div>
+ </div>
+ </div>
+ <div class="col-12 col-lg-6 o_setting_box" id="sync_google_calendar_setting">
+ <div class="o_setting_left_pane">
<field name="module_google_calendar" />
</div>
<div class="o_setting_right_pane">