Browse Source

Jun 23: [FIX] Bug Fixed 'backend_theme_infinito'

16.0
Cybrosys Technologies 6 days ago
parent
commit
20dbdc4a73
  1. 2
      backend_theme_infinito/__manifest__.py
  2. 10
      backend_theme_infinito/controllers/main.py
  3. 4
      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, Main Highlight Of The Theme Is You Can Dynamically Change The Colors,
Views, Buttons, Different Types Sidebar...Etc""", Views, Buttons, Different Types Sidebar...Etc""",
"category": "Themes/Backend", "category": "Themes/Backend",
"version": "16.0.1.0.4", "version": "16.0.1.0.5",
'author': 'Cybrosys Techno Solutions', 'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions', 'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions', 'maintainer': 'Cybrosys Techno Solutions',

10
backend_theme_infinito/controllers/main.py

@ -26,6 +26,8 @@ import re
from odoo import http from odoo import http
from odoo.http import request from odoo.http import request
from odoo.modules.module import get_module_resource
def minify_css(path): def minify_css(path):
"""Minify css string""" """Minify css string"""
@ -223,10 +225,10 @@ class ThemeStudio(http.Controller):
@http.route(['/theme_studio/get_presets'], type="json") @http.route(['/theme_studio/get_presets'], type="json")
def get_presets(self): def get_presets(self):
working_dir = os.path.dirname(os.path.realpath(__file__)) file_path = get_module_resource(
working_dir = working_dir.replace('/controllers', '') 'backend_theme_infinito',
file_path = working_dir + '/static/src/json/presets.json' 'static', 'src', 'json', 'presets.json'
)
file = open(file_path, 'r') file = open(file_path, 'r')
presets = json.load(file) presets = json.load(file)
return presets return presets

4
backend_theme_infinito/doc/RELEASE_NOTES.md

@ -5,3 +5,7 @@
#### ADD #### ADD
Initial Commit Initial Commit
#### 23.06.2025
#### Version 16.0.1.0.5
#### UPDT
Added a general method to load file instead of os specific.
Loading…
Cancel
Save