Skip to content

Commit

Permalink
Nov 28 [ADD] : Initial Commit 'backend_theme_infinito'
Browse files Browse the repository at this point in the history
  • Loading branch information
AjmalCybro committed Nov 28, 2022
1 parent b1139b3 commit a0f100d
Show file tree
Hide file tree
Showing 204 changed files with 11,708 additions and 0 deletions.
41 changes: 41 additions & 0 deletions backend_theme_infinito/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
Backend Theme Infinito
=======================
* Backend Theme Infinito 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/16.0/legal/licenses/licenses.html)

Company
-------
* 'Cybrosys Techno Solutions <https://cybrosys.com/>'__

Credits
-------
* 'Cybrosys Techno Solutions <https://cybrosys.com/>'__
Author : Farseen, Musthafa @Cybrosys

Contacts
--------
* Mail Contact : [email protected]

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

24 changes: 24 additions & 0 deletions backend_theme_infinito/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2022-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 .icon_hooks import icons_post_init_hook
from . import controllers
from . import models
96 changes: 96 additions & 0 deletions backend_theme_infinito/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2022-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": "Infinito Backend Theme",
"description": """Utmost and dynamic backend theme for Odoo 16""",
"summary": """The Backend Theme Infinito Is A Dynamic And Ultimate Theme
For Your Odoo V16. This Theme Will Give You A New Experience With Odoo.
Main Highlight Of The Theme Is You Can Dynamically Change The Colors,
Views, Buttons, Different Types Sidebar...Etc""",
"category": "Themes/Backend",
"version": "16.0.1.0.0",
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': "https://www.cybrosys.com",
"depends": ['web', 'mail'],
"data": [
'views/assets.xml',
'views/layout.xml',
'views/base_pwa.xml',
'views/icons.xml',
],
'assets': {
'web._assets_primary_variables': {
'backend_theme_infinito/static/src/scss/theme_variables.scss',
},
'web.assets_backend': {
'/backend_theme_infinito/static/src/xml/systray.xml',
'/backend_theme_infinito/static/src/xml/views.xml',
'/backend_theme_infinito/static/src/xml/theme_editor.xml',
'/backend_theme_infinito/static/src/xml/studio_elements.xml',
'/backend_theme_infinito/static/src/xml/ThemeStudioMenu.xml',
'/backend_theme_infinito/static/src/xml/style_add.xml',
'/backend_theme_infinito/static/src/xml/sidebar.xml',
'/backend_theme_infinito/static/src/xml/MenuBookmark.xml',

'https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap',
'/backend_theme_infinito/static/src/css/style.css',
'/backend_theme_infinito/static/src/css/loaders.css',
'backend_theme_infinito/static/src/scss/sidebar.scss',
'backend_theme_infinito/static/src/scss/responsive.scss',
'backend_theme_infinito/static/src/scss/theme_date_picker.scss',
'backend_theme_infinito/static/src/scss/theme_styles.scss',
'backend_theme_infinito/static/src/scss/theme_rtl.scss',
'backend_theme_infinito/static/src/scss/app_menu.scss',
'backend_theme_infinito/static/src/scss/extra_styles.scss',
'backend_theme_infinito/static/src/scss/views.scss',
'/backend_theme_infinito/static/src/js/systray.js',
'/backend_theme_infinito/static/src/js/loaders.js',
'/backend_theme_infinito/static/src/js/theme_editor.js',
'/backend_theme_infinito/static/src/js/ThemeStudioWidget.js',
'/backend_theme_infinito/static/src/js/Tool.js',
'/backend_theme_infinito/static/src/js/VisualEditor.js',
'/backend_theme_infinito/static/src/js/change.js',
'/backend_theme_infinito/static/src/js/style_add.js',
'/backend_theme_infinito/static/src/js/sidebar.js',
'/backend_theme_infinito/static/src/js/navbar.js',
'/backend_theme_infinito/static/src/js/theme_editor_sidebar.js',
'/backend_theme_infinito/static/src/js/recentApps.js',
'/backend_theme_infinito/static/src/js/timepicker.js',
'/backend_theme_infinito/static/src/js/MenuBookmark.js',
'/backend_theme_infinito/static/src/js/AdvancedFeautres.js',
'/backend_theme_infinito/static/src/js/theme_studio_action.js',
'/backend_theme_infinito/static/src/js/ThemeStudioMenu.js',
'/backend_theme_infinito/static/src/js/variables.js',
},
},
'post_init_hook': 'icons_post_init_hook',
'images': [
'static/description/banner.png',
'static/description/theme_screenshot.png',
],
'license': 'LGPL-3',
'installable': True,
'application': False,
'auto_install': False,
}
23 changes: 23 additions & 0 deletions backend_theme_infinito/controllers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2022-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 . import main
from . import base_pwa
55 changes: 55 additions & 0 deletions backend_theme_infinito/controllers/base_pwa.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2022-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 json
from odoo import http
from odoo.http import request


class BasePwa(http.Controller):
def pwa_data(self):
# pwa_enable = request.env[
# "ir.config_parameter"].sudo().get_param(
# "base_pwa.pwa_enable")
# if pwa_enable:
return {
'short_name': 'Odoo',
'name': 'Odoo-infinito',
'description': 'PWA provided by backend theme infinito',
'icons': [
{
'src': '/backend_theme_infinito/static/src/img/menu.png',
'type': 'image/png',
'sizes': '144x144',
'purpose': 'any maskable'
},
],
'start_url': 'http://cybrosys:8015/web',
'background_color': 'white',
'display': 'standalone',
'theme_color': 'white',
}

@http.route('/manifest/webmanifest', type='http',
auth='public', website=True, sitemap=False)
def base_pwa_data(self):
return request.make_response(json.dumps(self.pwa_data()),
headers=[('Content-Type', 'application/json;charset=utf-8')])
Loading

0 comments on commit a0f100d

Please sign in to comment.