From f6ab94e0b38da19c1fd0547e4551e97a9aca297a Mon Sep 17 00:00:00 2001 From: Marc Durepos Date: Tue, 17 Dec 2024 10:43:10 -0500 Subject: [PATCH] caldav_sync: add SELF_WRITEABLE_FIELDS for users --- caldav_sync/__manifest__.py | 2 +- caldav_sync/models/res_users.py | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/caldav_sync/__manifest__.py b/caldav_sync/__manifest__.py index d03351c..3fea042 100644 --- a/caldav_sync/__manifest__.py +++ b/caldav_sync/__manifest__.py @@ -8,7 +8,7 @@ { "name": "CalDAV Synchronization", - "version": "17.0.0.6.1", + "version": "17.0.0.6.2", "license": "LGPL-3", "category": "Productivity", "summary": "Synchronize Odoo Calendar Events with CalDAV Servers", diff --git a/caldav_sync/models/res_users.py b/caldav_sync/models/res_users.py index 8c661a6..defefcb 100644 --- a/caldav_sync/models/res_users.py +++ b/caldav_sync/models/res_users.py @@ -15,6 +15,14 @@ class ResUsers(models.Model): caldav_password = fields.Char(string="CalDAV Password") is_caldav_enabled = fields.Boolean(compute="_compute_is_caldav_enabled", store=True) + @property + def SELF_WRITEABLE_FIELDS(self): + return super().SELF_READABLE_FIELDS + [ + "caldav_calendar_url", + "caldav_username", + "caldav_password", + ] + @api.depends("caldav_username", "caldav_password", "caldav_calendar_url") def _compute_is_caldav_enabled(self): """This is a bit of an odd way of computing the field, but it works since any