Merge branch '17.0' of git.bemade.org:bemade/bemade-addons into 17.0
This commit is contained in:
commit
fa4f1b2b19
2 changed files with 9 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue