From 3b0322c778482835967a2df48ce6ee35d63d7aa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 20 Apr 2011 21:13:27 +0200 Subject: [PATCH] Make module and path required on icon Otherwise get_icon will fail and prevent the load of other icons --- trytond/ir/ui/icon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trytond/ir/ui/icon.py b/trytond/ir/ui/icon.py index 90e1c4612b..ef64c96599 100644 --- a/trytond/ir/ui/icon.py +++ b/trytond/ir/ui/icon.py @@ -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')