[IMP] *: use svg icons instead of png
Prior to this commit, some icons used the png version. After this commit, the svg version is used instead. task-2818586 Part-of: odoo/odoo#116641
This commit is contained in:
committed by
Pierre Paridans
parent
21d87a3da5
commit
18cb11891e
@@ -37,7 +37,7 @@ _DEFAULT_MANIFEST = {
|
||||
'depends': [],
|
||||
'description': '',
|
||||
'external_dependencies': {},
|
||||
#icon: f'/{module}/static/description/icon.png', # automatic
|
||||
#icon: f'/{module}/static/description/icon.svg', # automatic
|
||||
'init_xml': [],
|
||||
'installable': True,
|
||||
'images': [], # website
|
||||
@@ -240,7 +240,7 @@ def get_resource_from_path(path):
|
||||
return None
|
||||
|
||||
def get_module_icon(module):
|
||||
iconpath = ['static', 'description', 'icon.png']
|
||||
iconpath = ['static', 'description', 'icon.svg']
|
||||
if get_module_resource(module, *iconpath):
|
||||
return ('/' + module + '/') + '/'.join(iconpath)
|
||||
return '/base/' + '/'.join(iconpath)
|
||||
|
||||
Reference in New Issue
Block a user