diff --git a/base_dav/radicale/collection.py b/base_dav/radicale/collection.py
index 9a37c5bf..5fd10cf5 100644
--- a/base_dav/radicale/collection.py
+++ b/base_dav/radicale/collection.py
@@ -130,3 +130,7 @@ class Collection(BaseCollection):
def list(self):
return self.collection.dav_list(self.path_components)
+
+ @classmethod
+ def create_collection(cls, href, collection=None, props=None):
+ return None
diff --git a/base_dav/tests/test_collection.py b/base_dav/tests/test_collection.py
index 47e9cbfc..6839515a 100644
--- a/base_dav/tests/test_collection.py
+++ b/base_dav/tests/test_collection.py
@@ -3,7 +3,6 @@
from datetime import datetime, timedelta
from unittest import mock
-from odoo.exceptions import MissingError
from odoo.tests.common import TransactionCase
from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT
@@ -108,8 +107,7 @@ class TestCalendar(TransactionCase):
# Delete an record
collection.delete(item.href)
- with self.assertRaises(MissingError):
- self.record.name
+ self.assertFalse(self.record.exists())
# Create a new record
item = collection.upload(record_url + "0", item)
diff --git a/base_dav/views/dav_collection.xml b/base_dav/views/dav_collection.xml
index 602b5074..d0cbfb21 100644
--- a/base_dav/views/dav_collection.xml
+++ b/base_dav/views/dav_collection.xml
@@ -39,6 +39,7 @@
+
@@ -52,9 +53,7 @@
-
+