Use Text field for icon content

The SVG format can have line break so the field must allow them.
This commit is contained in:
Cédric Krier committed 2024-10-08 14:37:07 +02:00
1 parent 799b8dde56
commit cff908ff80
1 file changed
+1 -1
+1 -1
View File
@@ -21,7 +21,7 @@ class Icon(
name = fields.Char('Name', required=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')
icon = fields.Function(fields.Text('Icon', depends=['path']), 'get_icon')
_list_icons = Cache('ir.ui.icon.list_icons', context=False)
@classmethod