Merge pull request #16 from expsa/migration-module-code_backend_theme
migration theme
|
|
@ -0,0 +1,40 @@
|
||||||
|
Code Backend Theme
|
||||||
|
==================
|
||||||
|
* Code Backend Theme module for Odoo 14 community editions
|
||||||
|
|
||||||
|
Installation
|
||||||
|
============
|
||||||
|
- www.odoo.com/documentation/14.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>`__
|
||||||
|
|
||||||
|
|
@ -0,0 +1,24 @@
|
||||||
|
# -*- 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/>.
|
||||||
|
#
|
||||||
|
#############################################################################
|
||||||
|
from .hooks import post_init_hook
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,44 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
{
|
||||||
|
"name": "Code Backend Theme V18",
|
||||||
|
"summary": "Minimalist and elegant backend theme for Odoo 18",
|
||||||
|
"description": """Attractive and modern backend theme for Odoo 18""",
|
||||||
|
"category": "Themes/Backend",
|
||||||
|
"version": "18.0.1.0.0",
|
||||||
|
"author": "Cybrosys Techno Solutions",
|
||||||
|
"company": "Cybrosys Techno Solutions",
|
||||||
|
"maintainer": "Cybrosys Techno Solutions",
|
||||||
|
"website": "https://www.cybrosys.com",
|
||||||
|
"license": "LGPL-3",
|
||||||
|
"depends": ["base", "web", "mail", "account"], # add 'account' if you patch its dashboard
|
||||||
|
"assets": {
|
||||||
|
"web.assets_backend": [
|
||||||
|
# "code_backend_theme/static/src/scss/theme_accent.scss",
|
||||||
|
"code_backend_theme/static/src/scss/navigation_bar.scss",
|
||||||
|
"code_backend_theme/static/src/scss/datetimepicker.scss",
|
||||||
|
"code_backend_theme/static/src/scss/theme.scss",
|
||||||
|
"code_backend_theme/static/src/scss/sidebar.scss",
|
||||||
|
"code_backend_theme/static/src/js/fields/basic_fields.js",
|
||||||
|
"code_backend_theme/static/src/js/fields/graph.js",
|
||||||
|
"code_backend_theme/static/src/js/chrome/sidebar.js",
|
||||||
|
"code_backend_theme/static/src/js/chrome/sidebar_menu.js",
|
||||||
|
],
|
||||||
|
"web.assets_frontend": [
|
||||||
|
"code_backend_theme/static/src/scss/login.scss",
|
||||||
|
],
|
||||||
|
"web.qweb": [
|
||||||
|
"code_backend_theme/static/src/xml/sidebar.xml",
|
||||||
|
"code_backend_theme/static/src/xml/styles.xml",
|
||||||
|
"code_backend_theme/static/src/xml/top_bar.xml",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
"images": [
|
||||||
|
"static/description/banner.png",
|
||||||
|
"static/description/theme_screenshot.png",
|
||||||
|
],
|
||||||
|
|
||||||
|
"post_init_hook": "post_init_hook",
|
||||||
|
"installable": True,
|
||||||
|
"application": False,
|
||||||
|
"auto_install": False,
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,25 @@
|
||||||
|
<odoo>
|
||||||
|
<data>
|
||||||
|
<template id="code_backend_theme_assets" inherit_id="web.assets_backend" name="Code Backend Theme Assets">
|
||||||
|
<xpath expr="." position="inside">
|
||||||
|
<!-- <link rel="stylesheet" href="/code_backend_theme/static/src/scss/theme_accent.scss"/>
|
||||||
|
<link rel="stylesheet" href="/code_backend_theme/static/src/scss/navigation_bar.scss"/>
|
||||||
|
<link rel="stylesheet" href="/code_backend_theme/static/src/scss/datetimepicker.scss"/>
|
||||||
|
<link rel="stylesheet" href="/code_backend_theme/static/src/scss/theme.scss"/>
|
||||||
|
<link rel="stylesheet" href="/code_backend_theme/static/src/scss/sidebar.scss"/> !-->
|
||||||
|
<script src="/code_backend_theme/static/src/js/fields/basic_fields.js"/>
|
||||||
|
<script src="/code_backend_theme/static/src/js/fields/graph.js"/>
|
||||||
|
<script src="/code_backend_theme/static/src/js/chrome/sidebar.js"/>
|
||||||
|
<script src="/code_backend_theme/static/src/js/chrome/sidebar_menu.js"/>
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet"/>
|
||||||
|
</xpath>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<template id="code_backend_theme_assets_frontend" inherit_id="web.assets_frontend">
|
||||||
|
<xpath expr="." position="inside">
|
||||||
|
<!--<link rel="stylesheet" href="/code_backend_theme/static/src/scss/login.scss"/>-->
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet"/>
|
||||||
|
</xpath>
|
||||||
|
</template>
|
||||||
|
</data>
|
||||||
|
</odoo>
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
## Module <code_backend_theme>
|
||||||
|
|
||||||
|
#### 09.06.2021
|
||||||
|
#### Version 14.0.1.0.0
|
||||||
|
#### ADD
|
||||||
|
Initial Commit
|
||||||
|
|
||||||
|
#### 18.06.2021
|
||||||
|
#### Version 14.0.1.1.0
|
||||||
|
#### UPDT
|
||||||
|
Made Responsive
|
||||||
|
|
||||||
|
#### 27.07.2021
|
||||||
|
#### Version 14.0.1.1.1
|
||||||
|
#### FIX
|
||||||
|
Template not found issue fixed
|
||||||
|
|
||||||
|
#### 23.09.2022
|
||||||
|
#### Version 14.0.1.1.3
|
||||||
|
#### FIX
|
||||||
|
List view style issue fixed
|
||||||
|
|
@ -0,0 +1,77 @@
|
||||||
|
# -*- 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 _set_menu_icons(env):
|
||||||
|
"""Helper function to set custom icons for top-level menus."""
|
||||||
|
menu_items = env['ir.ui.menu'].search([('parent_id', '=', False)])
|
||||||
|
icon_map = {
|
||||||
|
'Contacts': 'Contacts.png',
|
||||||
|
'Link Tracker': 'Link Tracker.png',
|
||||||
|
'Dashboards': 'Dashboards.png',
|
||||||
|
'Sales': 'Sales.png',
|
||||||
|
'Invoicing': 'Invoicing.png',
|
||||||
|
'Inventory': 'Inventory.png',
|
||||||
|
'Purchase': 'Purchase.png',
|
||||||
|
'Calendar': 'Calendar.png',
|
||||||
|
'CRM': 'CRM.png',
|
||||||
|
'Notes': 'Notes.png', # Standardized to 'Notes'
|
||||||
|
'Website': 'Website.png',
|
||||||
|
'Point of Sale': 'Point of Sale.png',
|
||||||
|
'Manufacturing': 'Manufacturing.png',
|
||||||
|
'Repairs': 'Repairs.png',
|
||||||
|
'Email Marketing': 'Email Marketing.png',
|
||||||
|
'SMS Marketing': 'SMS Marketing.png',
|
||||||
|
'Project': 'Project.png',
|
||||||
|
'Surveys': 'Surveys.png',
|
||||||
|
'Employees': 'Employees.png',
|
||||||
|
'Recruitment': 'Recruitment.png',
|
||||||
|
'Attendances': 'Attendances.png',
|
||||||
|
'Time Off': 'Time Off.png',
|
||||||
|
'Expenses': 'Expenses.png',
|
||||||
|
'Maintenance': 'Maintenance.png',
|
||||||
|
'Live Chat': 'Live Chat.png',
|
||||||
|
'Lunch': 'Lunch.png',
|
||||||
|
'Fleet': 'Fleet.png',
|
||||||
|
'Timesheets': 'Timesheets.png',
|
||||||
|
'Events': 'Events.png',
|
||||||
|
'eLearning': 'eLearning.png',
|
||||||
|
'Members': 'Members.png',
|
||||||
|
}
|
||||||
|
|
||||||
|
for menu in menu_items:
|
||||||
|
if menu.name in icon_map:
|
||||||
|
img_path = get_module_resource(
|
||||||
|
'code_backend_theme', 'static', 'src', 'img', 'icons', icon_map[menu.name]
|
||||||
|
)
|
||||||
|
if img_path:
|
||||||
|
with open(img_path, "rb") as f:
|
||||||
|
menu.write({'web_icon_data': base64.b64encode(f.read())})
|
||||||
|
|
||||||
|
|
||||||
|
def post_init_hook(env):
|
||||||
|
"""Post-init hook: Set menu icons after module installation."""
|
||||||
|
_set_menu_icons(env)
|
||||||
|
After Width: | Height: | Size: 362 KiB |
|
After Width: | Height: | Size: 344 KiB |
|
After Width: | Height: | Size: 310 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 576 B |
|
After Width: | Height: | Size: 733 B |
|
After Width: | Height: | Size: 404 B |
|
After Width: | Height: | Size: 492 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 911 B |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 673 B |
|
After Width: | Height: | Size: 878 B |
|
After Width: | Height: | Size: 653 B |
|
After Width: | Height: | Size: 905 B |
|
After Width: | Height: | Size: 839 B |
|
After Width: | Height: | Size: 427 B |
|
After Width: | Height: | Size: 627 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 988 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 102 KiB |
|
After Width: | Height: | Size: 3.1 MiB |
|
After Width: | Height: | Size: 1.8 MiB |
|
After Width: | Height: | Size: 137 KiB |
|
After Width: | Height: | Size: 187 KiB |
|
After Width: | Height: | Size: 105 KiB |
|
After Width: | Height: | Size: 123 KiB |
|
After Width: | Height: | Size: 206 KiB |
|
After Width: | Height: | Size: 258 KiB |
|
After Width: | Height: | Size: 648 KiB |
|
After Width: | Height: | Size: 200 KiB |
|
After Width: | Height: | Size: 719 KiB |
|
After Width: | Height: | Size: 456 KiB |
|
After Width: | Height: | Size: 176 KiB |
|
After Width: | Height: | Size: 404 KiB |
|
After Width: | Height: | Size: 138 KiB |
|
After Width: | Height: | Size: 213 KiB |
|
After Width: | Height: | Size: 396 KiB |
|
After Width: | Height: | Size: 272 KiB |
|
After Width: | Height: | Size: 305 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 699 KiB |
|
After Width: | Height: | Size: 169 KiB |
|
After Width: | Height: | Size: 4.1 MiB |
|
After Width: | Height: | Size: 353 KiB |
|
After Width: | Height: | Size: 206 KiB |
|
After Width: | Height: | Size: 80 KiB |
|
After Width: | Height: | Size: 1.8 MiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 688 KiB |
|
After Width: | Height: | Size: 3.6 KiB |
|
After Width: | Height: | Size: 446 B |
|
After Width: | Height: | Size: 653 B |
|
After Width: | Height: | Size: 657 B |
|
After Width: | Height: | Size: 700 B |
|
After Width: | Height: | Size: 644 B |
|
After Width: | Height: | Size: 656 B |
|
After Width: | Height: | Size: 874 B |
|
After Width: | Height: | Size: 445 B |
|
After Width: | Height: | Size: 730 B |
|
After Width: | Height: | Size: 718 B |
|
After Width: | Height: | Size: 755 B |
|
After Width: | Height: | Size: 539 B |
|
After Width: | Height: | Size: 709 B |
|
After Width: | Height: | Size: 762 B |
|
After Width: | Height: | Size: 607 B |
|
After Width: | Height: | Size: 620 B |
|
After Width: | Height: | Size: 627 B |
|
After Width: | Height: | Size: 621 B |
|
After Width: | Height: | Size: 367 B |
|
After Width: | Height: | Size: 616 B |