edit ensan backend theme new apps icons
|
|
@ -39,8 +39,8 @@
|
|||
'static/src/xml/*'
|
||||
],
|
||||
'license': 'LGPL-3',
|
||||
# 'pre_init_hook': 'test_pre_init_hook',
|
||||
# 'post_init_hook': 'test_post_init_hook',
|
||||
'pre_init_hook': 'test_pre_init_hook',
|
||||
'post_init_hook': 'test_post_init_hook',
|
||||
'installable': True,
|
||||
'application': False,
|
||||
'auto_install': False,
|
||||
|
|
|
|||
|
|
@ -35,248 +35,292 @@ def test_pre_init_hook(cr):
|
|||
for menu in menu_item:
|
||||
if menu.name == 'Contacts':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'contact.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'contact.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Link Tracker':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'link.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'link_tracker.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Dashboards':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'dashboard.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'dashboard.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Sales':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'sales.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'sales.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Accounting':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'accounting.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'accounting.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Inventory':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'inventory.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'inventory.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Purchase':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'purchase.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'purchase.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Calendar':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'calendar.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'calendar.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'CRM':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'crm.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'crm.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Note':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'notes.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'notes.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Website':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'website.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'website.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Point of Sale':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'pos.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'pos.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Manufacturing':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'manufacturing.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'manufacturing.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Repairs':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'repair.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'repair.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Email Marketing':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'email-shopping.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'email_market.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'SMS Marketing':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'sms.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'sms.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Project':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'projects.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'project.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Surveys':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'survey.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'surveys.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Employees':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'employees.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'employees.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Recruitment':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'recruitment.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'recruitment.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Attendances':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'attendance.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'attendances.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Time Off':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'time-off.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'time-off.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Expenses':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'expenses.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'expenses.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Maintenance':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'maintenance.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'maintenance.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Live Chat':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'new-live-chat.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'new-live-chat.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Lunch':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'restaurant.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'lunch.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Fleet':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'traffic.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'fleet.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Timesheets':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'timesheet.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'timesheet.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Events':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'token.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'events.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'eLearning':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'e-learning.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'e-learning.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Membership':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'membership.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Members':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'user.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'members.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
|
||||
if menu.name == 'Subscriptions':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'subscription.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'subscription.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Documents':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'documents.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'documents.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Rental':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'rental.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'rental.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Marketing Automation':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'marketing_automation.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'marketing_automation.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'IoT':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'iot.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'iot.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Helpdesk':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'help.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'help.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Planning':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'planning.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'planning.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Appraisal':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'appraisal.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'appraisal.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Consolidation':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'consolidation.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'consolidation.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Payroll':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'payroll.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'payaroll.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Barcode':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'barcode.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'barcode.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Quality':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'quality.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'quality.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'PLM':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'plm.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'plm.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Field Service':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'field-service.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'field-service.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Data Cleaning':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'clean-code.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'clean-code.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Approvals':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'approvals.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'approvals.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Referrals':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'referrals.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'referral.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Discuss':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'discuss.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'discuss.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Social Marketing':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'like.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'like.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Document Management System':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'documents.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'documents.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Asset Extend':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'assest-manager.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'assest-manager.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Odex25 Accounting':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'accounting.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'accounting.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Petty Cash':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', '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())})
|
||||
if menu.name == 'Task Logs':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'timesheets.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'task-log.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Base':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'dashboard.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'dashboard.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'System Notification':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'notification.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'notification.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Initiative Management':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'goal.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'goal.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Sign':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'dashboard.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'dashboard.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Recurring - Contracts Management':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'renewal.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'renewal.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Assets Management':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', '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())})
|
||||
if menu.name == 'Benefit management':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'benefit_management.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'My Dashboard':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'my_dashboard.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Transactions Management':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'transactions_management.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Real estate':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'real_estate.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Real Estate Marketing':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'real_estate_marketing.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Kafalat System':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'kafalat_system.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'KPI':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'kpi.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Timesheet':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'timesheet.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Email Market':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'email_market.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Workflow':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'workflow.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
|
||||
|
||||
|
|
@ -289,246 +333,290 @@ def test_post_init_hook(cr, registry):
|
|||
for menu in menu_item:
|
||||
if menu.name == 'Contacts':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'contacts.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'contact.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Link Tracker':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'link.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'link_tracker.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Dashboards':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'dashboard.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'dashboard.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Sales':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'sales.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'sales.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Accounting':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'accounting.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'accounting.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Inventory':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'inventory.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'inventory.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Purchase':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'purchase.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'purchase.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Calendar':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'calendar.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'calendar.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'CRM':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'crm.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'crm.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Note':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'notes.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'notes.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Website':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'website.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'website.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Point of Sale':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'pos.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'pos.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Manufacturing':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'manufacturing.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'manufacturing.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Repairs':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'repair.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'repair.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Email Marketing':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'email-shopping.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'email_market.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'SMS Marketing':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'sms.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'sms.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Project':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'projects.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'project.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Surveys':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'survey.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'surveys.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Employees':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'employees.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'employees.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Recruitment':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'recruitment.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'recruitment.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Attendances':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'attendance.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'attendances.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Time Off':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'time-off.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'time-off.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Expenses':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'expenses.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'expenses.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Maintenance':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'maintenance.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'maintenance.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Live Chat':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'new-live-chat.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'new-live-chat.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Lunch':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'restuarant.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'lunch.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Fleet':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'traffic.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'fleet.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Timesheets':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'timesheet.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'timesheet.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Events':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'token.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'events.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'eLearning':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'e-learning.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'e-learning.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Membership':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'membership.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Members':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'user.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'members.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
|
||||
if menu.name == 'Subscriptions':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'subscription.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'subscription.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Documents':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'documents.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'documents.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Rental':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'rental.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'rental.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Marketing Automation':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'marketing_automation.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'marketing_automation.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'IoT':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'iot.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'iot.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Helpdesk':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'help.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'help.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Planning':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'planning.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'planning.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Appraisal':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'appraisal.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'appraisal.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Consolidation':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'consolidation.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'consolidation.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Payroll':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'payroll.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'payaroll.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Barcode':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'barcode.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'barcode.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Quality':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'quality.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'quality.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'PLM':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'plm.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'plm.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Field Service':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'field-service.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'field-service.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Data Cleaning':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'clean-code.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'clean-code.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Approvals':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'approvals.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'approvals.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Referrals':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'referrals.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'referral.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Discuss':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'discuss.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'discuss.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Social Marketing':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'like.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'like.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Document Management System':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'documents.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'documents.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Asset Extend':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'assest-manager.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'assest-manager.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Odex25 Accounting':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'accounting.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'accounting.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Petty Cash':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', '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())})
|
||||
if menu.name == 'Task Logs':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'timesheets.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'task-log.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Base':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'dashboard.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'dashboard.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'System Notification':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'notification.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'notification.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Initiative Management':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'goal.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'goal.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Sign':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'dashboard.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'dashboard.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Recurring - Contracts Management':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'icons', 'renewal.png')
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'renewal.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Assets Management':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', '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())})
|
||||
if menu.name == 'Benefit management':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'benefit_management.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'My Dashboard':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'my_dashboard.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Transactions Management':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'transactions_management.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Real estate':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'real_estate.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Real Estate Marketing':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'real_estate_marketing.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Kafalat System':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'kafalat_system.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'KPI':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'kpi.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Timesheet':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'timesheet.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Email Market':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'email_market.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Workflow':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme_enterprise', 'static', 'src', 'img', 'new_icons', 'workflow.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
|
|
|
|||
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 5.7 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 4.7 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 4.6 KiB |
|
After Width: | Height: | Size: 2.7 KiB |
|
After Width: | Height: | Size: 6.2 KiB |
|
After Width: | Height: | Size: 5.7 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 8.0 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 8.5 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 6.7 KiB |
|
After Width: | Height: | Size: 6.7 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 812 B |
|
After Width: | Height: | Size: 4.0 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 5.9 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 5.9 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 6.0 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 4.6 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 6.2 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 921 B |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 5.7 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 6.5 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 4.0 KiB |
|
After Width: | Height: | Size: 6.3 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 11 KiB |