From 986d368cd7fda5bde7defad942817fc619e7403f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 19 Jul 2008 22:56:32 +0200 Subject: [PATCH] Add domain for parent of collection --- 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 b95b0c9740..6a4cb6243b 100644 --- a/trytond/webdav/webdav.py +++ b/trytond/webdav/webdav.py @@ -16,7 +16,7 @@ class Collection(OSV): _description = __doc__ name = fields.Char('Name', size=128, required=True, select=1) parent = fields.Many2One('webdav.collection', 'Parent', - ondelete='restrict') + ondelete='restrict', domain=[('model', '=', False)]) childs = fields.One2Many('webdav.collection', 'parent', 'Childs') model = fields.Many2One('ir.model', 'Model') domain = fields.Char('Domain', size=250)