diff --git a/backend_theme_infinito/__manifest__.py b/backend_theme_infinito/__manifest__.py index 7549fb223..9748f7e44 100755 --- a/backend_theme_infinito/__manifest__.py +++ b/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', diff --git a/backend_theme_infinito/controllers/main.py b/backend_theme_infinito/controllers/main.py index f9fec1d92..d78da1921 100755 --- a/backend_theme_infinito/controllers/main.py +++ b/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 diff --git a/backend_theme_infinito/doc/RELEASE_NOTES.md b/backend_theme_infinito/doc/RELEASE_NOTES.md index 652bf6eaa..af4ad11a3 100755 --- a/backend_theme_infinito/doc/RELEASE_NOTES.md +++ b/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. \ No newline at end of file