Convert str id into int

(transplanted from 71c2427dd0ef0d9a61c9277479ea68b22dc98255)
This commit is contained in:
Cédric Krier committed 2010-06-01 20:21:01 +02:00
1 parent b15934a9df
commit 7e8854a17c
1 file changed
+1 -1
+1 -1
View File
@@ -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