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,
Views, Buttons, Different Types Sidebar...Etc""",
"category": "Themes/Backend",
"version": "16.0.1.0.4",
"version": "16.0.1.0.5",
'author': 'Cybrosys Techno Solutions',
'company': '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.http import request
from odoo.modules.module import get_module_resource
def minify_css(path):
"""Minify css string"""
@ -223,10 +225,10 @@ class ThemeStudio(http.Controller):
@http.route(['/theme_studio/get_presets'], type="json")
def get_presets(self):
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

4
backend_theme_infinito/doc/RELEASE_NOTES.md

@ -5,3 +5,7 @@
#### ADD
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