[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:
Brieuc-brd
2023-05-12 22:59:15 +02:00
committed by Pierre Paridans
parent 21d87a3da5
commit 18cb11891e
6 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -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)