@ -0,0 +1,49 @@ |
|||||
|
.. image:: https://img.shields.io/badge/license-LGPL--3-green.svg |
||||
|
:target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html |
||||
|
:alt: License: LGPL-3 |
||||
|
|
||||
|
Vista Backend Theme |
||||
|
=================== |
||||
|
* Vista Backend Theme module for Odoo 18 community editions |
||||
|
|
||||
|
License |
||||
|
------- |
||||
|
General Public License, Version 3 (LGPL v3). |
||||
|
(https://www.odoo.com/documentation/user/17.0/legal/licenses/licenses.html) |
||||
|
|
||||
|
Configuration |
||||
|
============= |
||||
|
- www.odoo.com/documentation/18.0/setup/install.html |
||||
|
- Install our custom addon |
||||
|
|
||||
|
Company |
||||
|
------- |
||||
|
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
||||
|
|
||||
|
Credits |
||||
|
------- |
||||
|
* Author : Nihala KP |
||||
|
Anfas Faisal K |
||||
|
|
||||
|
Contact: odoo@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 |
||||
|
========== |
||||
|
.. image:: https://cybrosys.com/images/logo.png |
||||
|
:target: https://cybrosys.com |
||||
|
|
||||
|
This module is maintained by Cybrosys Technologies. |
||||
|
|
||||
|
For support and more information, please visit `Our Website <https://cybrosys.com/>`__ |
||||
|
|
||||
|
Further information |
||||
|
=================== |
||||
|
HTML Description: `<static/description/index.html>`__ |
@ -0,0 +1,23 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-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/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from .hooks import test_pre_init_hook, test_post_init_hook |
||||
|
from . import wizard |
@ -0,0 +1,65 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-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/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
{ |
||||
|
"name": "Vista Backend Theme", |
||||
|
"version": "18.0.1.0.0", |
||||
|
"category": "Themes/Backend", |
||||
|
"summary": "Vista Backend Theme is an attractive theme for backend", |
||||
|
"description": """Minimalist and elegant backend theme for Odoo 17, |
||||
|
Backend Theme, Theme""", |
||||
|
'author': 'Cybrosys Techno Solutions', |
||||
|
'company': 'Cybrosys Techno Solutions', |
||||
|
'maintainer': 'Cybrosys Techno Solutions', |
||||
|
'website': "https://www.cybrosys.com", |
||||
|
"depends": ['web', 'mail', 'base'], |
||||
|
"data": [ |
||||
|
'security/ir.model.access.csv', |
||||
|
'views/icons_views.xml', |
||||
|
'views/layout_templates.xml', |
||||
|
'views/theme_data_views.xml', |
||||
|
'views/assets_views.xml', |
||||
|
'data/theme_data.xml', |
||||
|
], |
||||
|
'assets': { |
||||
|
'web.assets_backend': { |
||||
|
'/vista_backend_theme/static/src/scss/theme.scss', |
||||
|
'/vista_backend_theme/static/src/xml/systray_templates.xml', |
||||
|
'/vista_backend_theme/static/src/xml/top_bar_templates.xml', |
||||
|
'/vista_backend_theme/static/src/js/systray.js', |
||||
|
'/vista_backend_theme/static/src/js/chrome/sidebar_menu.js', |
||||
|
}, |
||||
|
'web.assets_frontend': { |
||||
|
'/vista_backend_theme/static/src/scss/login.scss', |
||||
|
'/vista_backend_theme/static/src/scss/login.scss', |
||||
|
}, |
||||
|
}, |
||||
|
'images': [ |
||||
|
'static/description/banner.jpg', |
||||
|
'static/description/theme_screenshot.jpg', |
||||
|
], |
||||
|
'license': 'LGPL-3', |
||||
|
'pre_init_hook': 'test_pre_init_hook', |
||||
|
'post_init_hook': 'test_post_init_hook', |
||||
|
'installable': True, |
||||
|
'auto_install': False, |
||||
|
'application': False |
||||
|
} |
@ -0,0 +1,9 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo> |
||||
|
<data noupdate="1"> |
||||
|
<!-- create a data file for storing theme data--> |
||||
|
<record id="theme_data_stored" model="theme.data.stored"> |
||||
|
<field name="name">default</field> |
||||
|
</record> |
||||
|
</data> |
||||
|
</odoo> |
@ -0,0 +1,8 @@ |
|||||
|
## Module <vista_backend_theme> |
||||
|
|
||||
|
#### 16.10.2024 |
||||
|
|
||||
|
#### Version 18.0.1.0.0 |
||||
|
#### ADD |
||||
|
- Initial commit for Vista Backend Theme |
||||
|
|
@ -0,0 +1,407 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-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.modules import get_module_resource |
||||
|
|
||||
|
|
||||
|
def test_pre_init_hook(cr): |
||||
|
"""pre init hook""" |
||||
|
menu_item = cr['ir.ui.menu'].search([('parent_id', '=', False)]) |
||||
|
for menu in menu_item: |
||||
|
if menu.name == 'Contacts': |
||||
|
img_path = get_module_resource( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_backend_theme', 'static', 'src', 'img', 'icons', |
||||
|
'accounting.png') |
||||
|
menu.write({'web_icon_data': base64.b64encode( |
||||
|
open(img_path, "rb").read())}) |
||||
|
if menu.name == 'Inventory': |
||||
|
img_path = get_module_resource( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_backend_theme', 'static', 'src', 'img', 'icons', |
||||
|
'notes.png') |
||||
|
menu.write({'web_icon_data': base64.b64encode( |
||||
|
open(img_path, "rb").read())}) |
||||
|
if menu.name == 'Website': |
||||
|
img_path = get_module_resource( |
||||
|
'vista_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( |
||||
|
'vista_backend_theme', 'static', 'src', 'img', 'icons', |
||||
|
'pos.png') |
||||
|
menu.write({'web_icon_data': base64.b64encode( |
||||
|
open(img_path, "rb").read())}) |
||||
|
if menu.name == 'Manufacturing': |
||||
|
img_path = get_module_resource( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_backend_theme', 'static', 'src', 'img', 'icons', |
||||
|
'employee.png') |
||||
|
menu.write({'web_icon_data': base64.b64encode( |
||||
|
open(img_path, "rb").read())}) |
||||
|
if menu.name == 'Recruitment': |
||||
|
img_path = get_module_resource( |
||||
|
'vista_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( |
||||
|
'vista_backend_theme', 'static', 'src', 'img', 'icons', |
||||
|
'attendance.png') |
||||
|
menu.write({'web_icon_data': base64.b64encode( |
||||
|
open(img_path, "rb").read())}) |
||||
|
if menu.name == 'Time Off': |
||||
|
img_path = get_module_resource( |
||||
|
'vista_backend_theme', 'static', 'src', 'img', 'icons', |
||||
|
'timeoff.png') |
||||
|
menu.write({'web_icon_data': base64.b64encode( |
||||
|
open(img_path, "rb").read())}) |
||||
|
if menu.name == 'Expenses': |
||||
|
img_path = get_module_resource( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_backend_theme', 'static', 'src', 'img', 'icons', |
||||
|
'timesheet.png') |
||||
|
menu.write({'web_icon_data': base64.b64encode( |
||||
|
open(img_path, "rb").read())}) |
||||
|
if menu.name == 'Events': |
||||
|
img_path = get_module_resource( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_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): |
||||
|
"""post init hook""" |
||||
|
menu_item = cr['ir.ui.menu'].search([('parent_id', '=', False)]) |
||||
|
for menu in menu_item: |
||||
|
if menu.name == 'Contacts': |
||||
|
img_path = get_module_resource( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_backend_theme', 'static', 'src', 'img', 'icons', |
||||
|
'accounting.png') |
||||
|
menu.write({'web_icon_data': base64.b64encode( |
||||
|
open(img_path, "rb").read())}) |
||||
|
if menu.name == 'Inventory': |
||||
|
img_path = get_module_resource( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_backend_theme', 'static', 'src', 'img', 'icons', |
||||
|
'notes.png') |
||||
|
menu.write({'web_icon_data': base64.b64encode( |
||||
|
open(img_path, "rb").read())}) |
||||
|
if menu.name == 'Website': |
||||
|
img_path = get_module_resource( |
||||
|
'vista_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( |
||||
|
'vista_backend_theme', 'static', 'src', 'img', 'icons', |
||||
|
'pos.png') |
||||
|
menu.write({'web_icon_data': base64.b64encode( |
||||
|
open(img_path, "rb").read())}) |
||||
|
if menu.name == 'Manufacturing': |
||||
|
img_path = get_module_resource( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_backend_theme', 'static', 'src', 'img', 'icons', |
||||
|
'employee.png') |
||||
|
menu.write({'web_icon_data': base64.b64encode( |
||||
|
open(img_path, "rb").read())}) |
||||
|
if menu.name == 'Recruitment': |
||||
|
img_path = get_module_resource( |
||||
|
'vista_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( |
||||
|
'vista_backend_theme', 'static', 'src', 'img', 'icons', |
||||
|
'attendance.png') |
||||
|
menu.write({'web_icon_data': base64.b64encode( |
||||
|
open(img_path, "rb").read())}) |
||||
|
if menu.name == 'Time Off': |
||||
|
img_path = get_module_resource( |
||||
|
'vista_backend_theme', 'static', 'src', 'img', 'icons', |
||||
|
'timeoff.png') |
||||
|
menu.write({'web_icon_data': base64.b64encode( |
||||
|
open(img_path, "rb").read())}) |
||||
|
if menu.name == 'Expenses': |
||||
|
img_path = get_module_resource( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_backend_theme', 'static', 'src', 'img', 'icons', |
||||
|
'timesheet.png') |
||||
|
menu.write({'web_icon_data': base64.b64encode( |
||||
|
open(img_path, "rb").read())}) |
||||
|
if menu.name == 'Events': |
||||
|
img_path = get_module_resource( |
||||
|
'vista_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( |
||||
|
'vista_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( |
||||
|
'vista_backend_theme', 'static', 'src', 'img', 'icons', |
||||
|
'members.png') |
||||
|
menu.write({'web_icon_data': base64.b64encode( |
||||
|
open(img_path, "rb").read())}) |
|
After Width: | Height: | Size: 198 KiB |
After Width: | Height: | Size: 5.9 KiB |
After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 62 KiB |
After Width: | Height: | Size: 58 KiB |
After Width: | Height: | Size: 68 KiB |
After Width: | Height: | Size: 69 KiB |
After Width: | Height: | Size: 70 KiB |
After Width: | Height: | Size: 74 KiB |
After Width: | Height: | Size: 148 KiB |
After Width: | Height: | Size: 73 KiB |
After Width: | Height: | Size: 98 KiB |
After Width: | Height: | Size: 216 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 1.2 MiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 587 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 929 B |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 33 KiB |
After Width: | Height: | Size: 59 KiB |
After Width: | Height: | Size: 66 KiB |
After Width: | Height: | Size: 151 KiB |
After Width: | Height: | Size: 103 KiB |
After Width: | Height: | Size: 198 KiB |
After Width: | Height: | Size: 331 KiB |
After Width: | Height: | Size: 258 KiB |
After Width: | Height: | Size: 368 KiB |
After Width: | Height: | Size: 189 KiB |
After Width: | Height: | Size: 198 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 885 B |
After Width: | Height: | Size: 470 KiB |
After Width: | Height: | Size: 899 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 527 B |
After Width: | Height: | Size: 527 B |
After Width: | Height: | Size: 591 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 523 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 694 B |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 854 B |
After Width: | Height: | Size: 649 B |
After Width: | Height: | Size: 975 B |
After Width: | Height: | Size: 707 B |
After Width: | Height: | Size: 809 B |
After Width: | Height: | Size: 792 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 788 B |
After Width: | Height: | Size: 863 B |
After Width: | Height: | Size: 458 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 776 B |
After Width: | Height: | Size: 933 B |
After Width: | Height: | Size: 390 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 906 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 901 B |
After Width: | Height: | Size: 574 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 2.7 KiB |