[ADD] create dav_calendar_sync addon

creates new addon dav_calendar_sync to synchronize caldav events on Odoo calendar
This commit is contained in:
Stéphan Sainléger
2022-08-08 14:15:44 +02:00
parent 36fd29fddb
commit 72e7ebe769
16 changed files with 289 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ class DavServer(models.Model):
status = fields.Char(compute='_compute_status', string='Status', store=True)
@api.depends("url", "username", "password")
def _compute_status(self):
def compute_status(self):
try:
self.get_principal()
self.write({"status": "OK"})

View File

@@ -19,6 +19,9 @@
<field name="model">dav.server</field>
<field name="arch" type="xml">
<form string="Dav Server">
<header>
<button string="Test connection" name="compute_status" type="object" class="oe_highlight" />
</header>
<sheet>
<group>
<field name="name" />