diff --git a/trytond/webdav/webdav.py b/trytond/webdav/webdav.py index cb72bc08cd..24c3350904 100644 --- a/trytond/webdav/webdav.py +++ b/trytond/webdav/webdav.py @@ -620,7 +620,7 @@ class Attachment(ModelSQL, ModelView): if attachment.resource: model_name, record_id = attachment.resource.split(',') if model_name == 'webdav.collection': - collection = collection_obj.browse(cursor, user, record_id) + collection = collection_obj.browse(cursor, user, int(record_id)) for child in collection.childs: if child.name == attachment.name: return False