Merge pull request #16 from expsa/migration-module-code_backend_theme

migration theme
This commit is contained in:
ahmed-nouri051 2025-09-24 11:43:36 +02:00 committed by GitHub
commit 959dbfdb93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
130 changed files with 3185 additions and 0 deletions

View File

@ -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>`__

View File

@ -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

View File

@ -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,
}

View File

@ -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&amp;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&amp;display=swap" rel="stylesheet"/>
</xpath>
</template>
</data>
</odoo>

View File

@ -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

View File

@ -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)

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 344 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 492 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 648 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 719 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 456 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 213 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 396 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 305 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 688 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 446 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 657 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 700 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 644 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 656 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 874 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 445 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 730 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 718 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 755 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 539 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 709 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 762 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 607 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 620 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 621 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 367 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 616 B

Some files were not shown because too many files have changed in this diff Show More