Browse Source

Jun 27: [FIX] Bug Fixed 'backend_theme_infinito'

pull/336/merge
Cybrosys Technologies 2 weeks ago
parent
commit
d58dd52871
  1. 2
      backend_theme_infinito/__manifest__.py
  2. 7
      backend_theme_infinito/controllers/main.py
  3. 5
      backend_theme_infinito/doc/RELEASE_NOTES.md

2
backend_theme_infinito/__manifest__.py

@ -27,7 +27,7 @@
Main Highlight Of The Theme Is You Can Dynamically Change The Colors,
Views, Buttons, Different Types Sidebar...Etc""",
"category": "Themes/Backend",
"version": "17.0.1.0.1",
"version": "17.0.1.0.2",
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',

7
backend_theme_infinito/controllers/main.py

@ -26,6 +26,8 @@ import re
from odoo import http
from odoo.http import request
from odoo.modules.module import get_module_resource
def minify_css(path):
"""
@ -576,10 +578,7 @@ class ThemeStudio(http.Controller):
print(presets)
```
"""
working_dir = os.path.dirname(os.path.realpath(__file__))
working_dir = working_dir.replace('/controllers', '')
file_path = working_dir + '/static/src/json/presets.json'
file_path = get_module_resource("backend_theme_infinito", "static", "src", "json", "presets.json")
file = open(file_path, 'r')
presets = json.load(file)
return presets

5
backend_theme_infinito/doc/RELEASE_NOTES.md

@ -9,3 +9,8 @@ Initial Commit for Infinito Backend Theme
#### Version 17.0.1.0.1
##### BUGFIX
- Fixed the style issue in the sidebar menu buttons.
#### 23.06.2025
#### Version 17.0.1.0.2
##### BUGFIX
- Updated the functionality to fetch the module resource.
Loading…
Cancel
Save