From b88f965c7c8d103ab4afd7d66049ce52036ab73c Mon Sep 17 00:00:00 2001 From: AjmalCybro Date: Fri, 25 Nov 2022 09:04:38 +0530 Subject: [PATCH] Nov 25 [UPDT] : Bug Fixed 'code_backend_theme' --- code_backend_theme/hooks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code_backend_theme/hooks.py b/code_backend_theme/hooks.py index 503cb8add..81a996b74 100644 --- a/code_backend_theme/hooks.py +++ b/code_backend_theme/hooks.py @@ -69,7 +69,7 @@ def test_pre_init_hook(cr): img_path = get_module_resource( 'code_backend_theme', 'static', 'src', 'img', 'icons', 'CRM.png') menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())}) - if menu.name == 'Note': + if menu.name == 'Note' or menu.name == 'Notes': img_path = get_module_resource( 'code_backend_theme', 'static', 'src', 'img', 'icons', 'Note.png') menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())}) @@ -182,7 +182,7 @@ def test_post_init_hook(cr, registry): img_path = get_module_resource( 'code_backend_theme', 'static', 'src', 'img', 'icons', 'Sales.png') menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())}) - if menu.name == 'Invoicing': + if menu.name == 'Invoicing' or menu.name == 'Accounting': img_path = get_module_resource( 'code_backend_theme', 'static', 'src', 'img', 'icons', 'Invoicing.png') menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})