Merge pull request #11 from expsa/ensan_theme_new_icons

re edit ensan backend theme new apps icons
This commit is contained in:
MohamedGad100 2024-06-25 13:22:33 +03:00 committed by GitHub
commit c440854d60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 13 additions and 5 deletions

View File

@ -282,7 +282,7 @@ def test_pre_init_hook(cr):
img_path = get_module_resource( img_path = get_module_resource(
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'assets.png') 'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'assets.png')
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())}) menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
if menu.name == 'Benefit management': if menu.name == 'Benefit Management':
img_path = get_module_resource( img_path = get_module_resource(
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'benefit_management.png') 'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'benefit_management.png')
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())}) menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
@ -294,7 +294,7 @@ def test_pre_init_hook(cr):
img_path = get_module_resource( img_path = get_module_resource(
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'transactions_management.png') 'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'transactions_management.png')
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())}) menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
if menu.name == 'Real estate': if menu.name == 'Real Estate':
img_path = get_module_resource( img_path = get_module_resource(
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'real_estate.png') 'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'real_estate.png')
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())}) menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
@ -322,6 +322,10 @@ def test_pre_init_hook(cr):
img_path = get_module_resource( img_path = get_module_resource(
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'workflow.png') 'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'workflow.png')
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())}) menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
if menu.name == 'Takaful Settings':
img_path = get_module_resource(
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'takaful_settings.png')
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
def test_post_init_hook(cr, registry): def test_post_init_hook(cr, registry):
@ -550,7 +554,7 @@ def test_post_init_hook(cr, registry):
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())}) menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
if menu.name == 'Petty Cash': if menu.name == 'Petty Cash':
img_path = get_module_resource( img_path = get_module_resource(
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'petty-cash.png') 'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'petty_cash.png')
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())}) menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
if menu.name == 'Task Logs': if menu.name == 'Task Logs':
img_path = get_module_resource( img_path = get_module_resource(
@ -580,7 +584,7 @@ def test_post_init_hook(cr, registry):
img_path = get_module_resource( img_path = get_module_resource(
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'assets.png') 'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'assets.png')
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())}) menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
if menu.name == 'Benefit management': if menu.name == 'Benefit Management':
img_path = get_module_resource( img_path = get_module_resource(
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'benefit_management.png') 'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'benefit_management.png')
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())}) menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
@ -592,7 +596,7 @@ def test_post_init_hook(cr, registry):
img_path = get_module_resource( img_path = get_module_resource(
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'transactions_management.png') 'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'transactions_management.png')
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())}) menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
if menu.name == 'Real estate': if menu.name == 'Real Estate':
img_path = get_module_resource( img_path = get_module_resource(
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'real_estate.png') 'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'real_estate.png')
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())}) menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
@ -620,3 +624,7 @@ def test_post_init_hook(cr, registry):
img_path = get_module_resource( img_path = get_module_resource(
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'workflow.png') 'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'workflow.png')
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())}) menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
if menu.name == 'Takaful Settings':
img_path = get_module_resource(
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'takaful_settings.png')
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 11 KiB