Make module and path required on icon

Otherwise get_icon will fail and prevent the load of other icons
This commit is contained in:
Cédric Krier committed 2011-04-20 21:13:27 +02:00
1 parent 54458c935a
commit 3b0322c778
1 file changed
+2 -2
+2 -2
View File
@@ -15,8 +15,8 @@ class Icon(ModelSQL, ModelView):
_description = __doc__
name = fields.Char('Name', required=True, select=1)
module = fields.Char('Module', readonly=True)
path = fields.Char('SVG Path', readonly=True)
module = fields.Char('Module', readonly=True, required=True)
path = fields.Char('SVG Path', readonly=True, required=True)
icon = fields.Function(fields.Char('Icon', depends=['path']), 'get_icon')
sequence = fields.Integer('Sequence')