Compare commits
1 Commits
feature/66
...
feature/sf
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8c53292f09 |
2
.gitignore
vendored
@@ -14,7 +14,7 @@ dist/
|
||||
downloads/
|
||||
eggs/
|
||||
.eggs/
|
||||
#lib/
|
||||
lib/
|
||||
lib64/
|
||||
parts/
|
||||
sdist/
|
||||
|
||||
8
.idea/.gitignore
generated
vendored
@@ -1,8 +0,0 @@
|
||||
# 默认忽略的文件
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# 基于编辑器的 HTTP 客户端请求
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
||||
1
.idea/.name
generated
@@ -1 +0,0 @@
|
||||
__manifest__.py
|
||||
6
.idea/inspectionProfiles/profiles_settings.xml
generated
@@ -1,6 +0,0 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<settings>
|
||||
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||
<version value="1.0" />
|
||||
</settings>
|
||||
</component>
|
||||
19
.idea/jikimo_sf.iml
generated
@@ -1,19 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="jdk" jdkName="Python 3.9" jdkType="Python SDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
<component name="PyDocumentationSettings">
|
||||
<option name="format" value="PLAIN" />
|
||||
<option name="myDocStringFormat" value="Plain" />
|
||||
</component>
|
||||
<component name="TemplatesService">
|
||||
<option name="TEMPLATE_FOLDERS">
|
||||
<list>
|
||||
<option value="$MODULE_DIR$/yizuo_login_background_and_styles/templates" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
</module>
|
||||
4
.idea/misc.xml
generated
@@ -1,4 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9 (venv)" project-jdk-type="Python SDK" />
|
||||
</project>
|
||||
8
.idea/modules.xml
generated
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/jikimo_sf.iml" filepath="$PROJECT_DIR$/.idea/jikimo_sf.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
6
.idea/vcs.xml
generated
@@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
8
code_backend_theme/.idea/code_backend_theme.iml
generated
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
@@ -1,6 +0,0 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<settings>
|
||||
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||
<version value="1.0" />
|
||||
</settings>
|
||||
</component>
|
||||
8
code_backend_theme/.idea/modules.xml
generated
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/code_backend_theme.iml" filepath="$PROJECT_DIR$/.idea/code_backend_theme.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
@@ -1,40 +0,0 @@
|
||||
Code Backend Theme
|
||||
==================
|
||||
* Code Backend Theme module for Odoo 16 community editions
|
||||
|
||||
Installation
|
||||
============
|
||||
- www.odoo.com/documentation/16.0/setup/install.html
|
||||
- Install our custom addon
|
||||
|
||||
License
|
||||
-------
|
||||
General Public License, Version 3 (LGPL v3).
|
||||
(https://www.odoo.com/documentation/user/14.0/legal/licenses/licenses.html)
|
||||
|
||||
Company
|
||||
-------
|
||||
* 'Cybrosys Techno Solutions <https://cybrosys.com/>'__
|
||||
|
||||
Credits
|
||||
-------
|
||||
* 'Cybrosys Techno Solutions <https://cybrosys.com/>'__
|
||||
|
||||
Contacts
|
||||
--------
|
||||
* Mail Contact : odoo@cybrosys.com
|
||||
|
||||
Bug Tracker
|
||||
-----------
|
||||
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported.
|
||||
|
||||
Maintainer
|
||||
==========
|
||||
This module is maintained by Cybrosys Technologies.
|
||||
|
||||
For support and more information, please visit https://www.cybrosys.com
|
||||
|
||||
Further information
|
||||
===================
|
||||
HTML Description: `<static/description/index.html>`__
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
## Module <code_backend_theme>
|
||||
|
||||
#### 17.10.2022
|
||||
#### Version 16.0.1.0.0
|
||||
#### ADD
|
||||
Initial Commit
|
||||
@@ -1,292 +0,0 @@
|
||||
"""Hooks for Changing Menu Web_icon"""
|
||||
# -*- coding: utf-8 -*-
|
||||
#############################################################################
|
||||
#
|
||||
# Cybrosys Technologies Pvt. Ltd.
|
||||
#
|
||||
# Copyright (C) 2021-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
|
||||
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
|
||||
#
|
||||
# You can modify it under the terms of the GNU LESSER
|
||||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
|
||||
# (LGPL v3) along with this program.
|
||||
# If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
#############################################################################
|
||||
import base64
|
||||
|
||||
from odoo import api, SUPERUSER_ID
|
||||
from odoo.modules import get_module_resource
|
||||
|
||||
|
||||
def test_pre_init_hook(cr):
|
||||
"""pre init hook"""
|
||||
|
||||
env = api.Environment(cr, SUPERUSER_ID, {})
|
||||
menu_item = env['ir.ui.menu'].search([('parent_id', '=', False)])
|
||||
|
||||
for menu in menu_item:
|
||||
if menu.name == 'Contacts':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme', 'static', 'src', 'img', 'icons', 'Contacts.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', 'static', 'src', 'img', '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', 'static', 'src', 'img', 'icons', 'Dashboards.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', 'static', 'src', 'img', 'icons', 'Sales.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
if menu.name == 'Invoicing':
|
||||
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())})
|
||||
if menu.name == 'Inventory':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme', 'static', 'src', 'img', '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', 'static', 'src', 'img', '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', 'static', 'src', 'img', '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', 'static', 'src', 'img', 'icons', 'CRM.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
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())})
|
||||
if menu.name == 'Website':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme', 'static', 'src', 'img', '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', 'static', 'src', 'img', 'icons', 'Point of Sale.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', 'static', 'src', 'img', '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', 'static', 'src', 'img', 'icons', 'Repairs.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', 'static', 'src', 'img', 'icons', 'Email Marketing.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', 'static', 'src', 'img', 'icons', 'SMS Marketing.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', 'static', 'src', 'img', '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', 'static', 'src', 'img', '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', 'static', 'src', 'img', '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', 'static', 'src', 'img', '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', 'static', 'src', 'img', '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', 'static', 'src', 'img', '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', 'static', 'src', 'img', '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', 'static', 'src', 'img', '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', 'static', 'src', 'img', 'icons', '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', 'static', 'src', 'img', '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', 'static', 'src', 'img', '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', 'static', 'src', 'img', 'icons', 'Timesheets.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', 'static', 'src', 'img', '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', 'static', 'src', 'img', 'icons', 'eLearning.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', 'static', 'src', 'img', 'icons', 'Members.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
|
||||
|
||||
def test_post_init_hook(cr, registry):
|
||||
"""post init hook"""
|
||||
|
||||
env = api.Environment(cr, SUPERUSER_ID, {})
|
||||
menu_item = env['ir.ui.menu'].search([('parent_id', '=', False)])
|
||||
|
||||
for menu in menu_item:
|
||||
if menu.name == 'Contacts':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme', 'static', 'src', 'img', 'icons', 'Contacts.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', 'static', 'src', 'img', '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', 'static', 'src', 'img', 'icons', 'Dashboards.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', 'static', 'src', 'img', 'icons', 'Sales.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
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())})
|
||||
if menu.name == 'Inventory':
|
||||
img_path = get_module_resource(
|
||||
'code_backend_theme', 'static', 'src', 'img', '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', 'static', 'src', 'img', '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', 'static', 'src', 'img', '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', 'static', 'src', 'img', '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', 'static', 'src', 'img', 'icons', 'Note.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', 'static', 'src', 'img', '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', 'static', 'src', 'img', 'icons', 'Point of Sale.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', 'static', 'src', 'img', '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', 'static', 'src', 'img', 'icons', 'Repairs.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', 'static', 'src', 'img', 'icons', 'Email Marketing.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', 'static', 'src', 'img', 'icons', 'SMS Marketing.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', 'static', 'src', 'img', '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', 'static', 'src', 'img', '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', 'static', 'src', 'img', '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', 'static', 'src', 'img', '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', 'static', 'src', 'img', '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', 'static', 'src', 'img', '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', 'static', 'src', 'img', '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', 'static', 'src', 'img', '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', 'static', 'src', 'img', 'icons', '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', 'static', 'src', 'img', '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', 'static', 'src', 'img', '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', 'static', 'src', 'img', 'icons', 'Timesheets.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', 'static', 'src', 'img', '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', 'static', 'src', 'img', 'icons', 'eLearning.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', 'static', 'src', 'img', 'icons', 'Members.png')
|
||||
menu.write({'web_icon_data': base64.b64encode(open(img_path, "rb").read())})
|
||||
|
Before Width: | Height: | Size: 120 KiB |
|
Before Width: | Height: | Size: 168 KiB |
|
Before Width: | Height: | Size: 306 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 169 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 589 B |
|
Before Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 967 B |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 60 KiB |
|
Before Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 56 KiB |
|
Before Width: | Height: | Size: 59 KiB |
|
Before Width: | Height: | Size: 1.8 MiB |
|
Before Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 722 KiB |
|
Before Width: | Height: | Size: 88 KiB |
|
Before Width: | Height: | Size: 90 KiB |
|
Before Width: | Height: | Size: 98 KiB |
|
Before Width: | Height: | Size: 71 KiB |
|
Before Width: | Height: | Size: 102 KiB |
|
Before Width: | Height: | Size: 137 KiB |
|
Before Width: | Height: | Size: 522 KiB |
|
Before Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 606 KiB |
|
Before Width: | Height: | Size: 290 KiB |
|
Before Width: | Height: | Size: 93 KiB |
|
Before Width: | Height: | Size: 334 KiB |
|
Before Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 218 KiB |
|
Before Width: | Height: | Size: 218 KiB |
|
Before Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 104 KiB |
|
Before Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 222 KiB |
|
Before Width: | Height: | Size: 117 KiB |
|
Before Width: | Height: | Size: 253 KiB |
|
Before Width: | Height: | Size: 116 KiB |
|
Before Width: | Height: | Size: 130 KiB |
|
Before Width: | Height: | Size: 85 KiB |
|
Before Width: | Height: | Size: 99 KiB |
|
Before Width: | Height: | Size: 120 KiB |
|
Before Width: | Height: | Size: 85 KiB |
|
Before Width: | Height: | Size: 106 KiB |
|
Before Width: | Height: | Size: 72 KiB |
|
Before Width: | Height: | Size: 378 KiB |
|
Before Width: | Height: | Size: 101 KiB |
|
Before Width: | Height: | Size: 295 KiB |
|
Before Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 194 KiB |
|
Before Width: | Height: | Size: 1.7 MiB |
|
Before Width: | Height: | Size: 23 KiB |
|
Before Width: | Height: | Size: 368 KiB |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--! Font Awesome Free 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2023 Fonticons, Inc. --><path d="M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"/></svg>
|
||||
|
Before Width: | Height: | Size: 448 B |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 446 B |
|
Before Width: | Height: | Size: 653 B |
|
Before Width: | Height: | Size: 657 B |
|
Before Width: | Height: | Size: 700 B |
|
Before Width: | Height: | Size: 644 B |
|
Before Width: | Height: | Size: 656 B |
|
Before Width: | Height: | Size: 874 B |
|
Before Width: | Height: | Size: 445 B |
|
Before Width: | Height: | Size: 730 B |
|
Before Width: | Height: | Size: 718 B |
|
Before Width: | Height: | Size: 755 B |
|
Before Width: | Height: | Size: 539 B |
|
Before Width: | Height: | Size: 709 B |
|
Before Width: | Height: | Size: 762 B |
|
Before Width: | Height: | Size: 607 B |
|
Before Width: | Height: | Size: 620 B |
|
Before Width: | Height: | Size: 627 B |
|
Before Width: | Height: | Size: 621 B |
|
Before Width: | Height: | Size: 367 B |