Make module and path required on icon
Otherwise get_icon will fail and prevent the load of other icons
This commit is contained in:
1 parent
54458c935a
commit
3b0322c778
1 file changed
+2
-2
@@ -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')
|
||||
|
||||
|
||||
Reference in new issue
Block a user