FIX: web icon

This commit is contained in:
raman 2025-02-21 14:44:12 +05:30
parent 3dbf149bd5
commit 1fa260bb26
2 changed files with 4 additions and 4 deletions

View File

@ -47,15 +47,15 @@ class WebManifest(http.Controller):
'scope': '/odoo', 'scope': '/odoo',
'start_url': '/odoo', 'start_url': '/odoo',
'display': 'standalone', 'display': 'standalone',
'background_color': '#714B67', 'background_color': '#017e84',
'theme_color': '#714B67', 'theme_color': '#017e84',
'prefer_related_applications': False, 'prefer_related_applications': False,
} }
icon_sizes = ['192x192', '512x512'] icon_sizes = ['192x192', '512x512']
manifest['icons'] = [{ manifest['icons'] = [{
'src': '/web/static/img/ftp.jpg', 'src': '/web/static/img/ftp.png',
'sizes': size, 'sizes': size,
'type': 'image/jpg', 'type': 'image/png',
} for size in icon_sizes] } for size in icon_sizes]
manifest['shortcuts'] = self._get_shortcuts() manifest['shortcuts'] = self._get_shortcuts()
return manifest return manifest

View File

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 53 KiB