From bbd792937c4fa87e4ed1c7aa9c79c3faf3adeeb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 11 Apr 2013 14:48:12 +0200 Subject: [PATCH] Fix object_name comparison to ir.attachment issue3130 --- trytond/webdav/webdav.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/webdav/webdav.py b/trytond/webdav/webdav.py index c6dc36cffd..cd5351ebc8 100644 --- a/trytond/webdav/webdav.py +++ b/trytond/webdav/webdav.py @@ -541,7 +541,7 @@ class Collection(ModelSQL, ModelView): object_name, object_id = cls._uri2object(get_uriparentpath(uri), cache=cache) if not object_name \ - or object_name in ('ir.attachment') \ + or object_name == 'ir.attachment' \ or not object_id: raise DAV_Forbidden pool = Pool()