Merge branch '17.0' of git.bemade.org:bemade/bemade-addons into 17.0

This commit is contained in:
xtremxpert 2024-12-17 12:51:57 -05:00
commit fa4f1b2b19
2 changed files with 9 additions and 1 deletions

View file

@ -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",

View file

@ -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