diff --git a/addons/caldav/caldav_node.py b/addons/caldav/caldav_node.py index 66cca2eb1f3..d5765267056 100644 --- a/addons/caldav/caldav_node.py +++ b/addons/caldav/caldav_node.py @@ -59,6 +59,7 @@ class node_calendar_collection(nodes.node_dir): "http://calendarserver.org/ns/" : '_get_dav', } + http_options = { 'DAV': ['calendar-access'] } def get_dav_props(self, cr): return self.PROPS @@ -160,6 +161,8 @@ class node_calendar(nodes.node_class): "http://calendarserver.org/ns/" : '_get_dav', "urn:ietf:params:xml:ns:caldav" : '_get_caldav'} + http_options = { 'DAV': ['calendar-access'] } + def __init__(self,path, parent, context, calendar): super(node_calendar,self).__init__(path, parent,context) self.calendar_id = calendar.id @@ -348,6 +351,8 @@ class res_node_calendar(nodes.node_class): "http://calendarserver.org/ns/" : '_get_dav', "urn:ietf:params:xml:ns:caldav" : '_get_caldav'} + http_options = { 'DAV': ['calendar-access'] } + def __init__(self,path, parent, context, res_obj, res_model=None, res_id=None): super(res_node_calendar,self).__init__(path, parent, context) self.mimetype = 'text/calendar'