diff --git a/jazzy_backend_theme/__manifest__.py b/jazzy_backend_theme/__manifest__.py index ef7d99451..667a10a0a 100644 --- a/jazzy_backend_theme/__manifest__.py +++ b/jazzy_backend_theme/__manifest__.py @@ -21,7 +21,7 @@ ############################################################################# { "name": "Jazzy Backend Theme", - "version": "18.0.1.0.0", + "version": "18.0.1.0.1", "category": "Themes/Backend", "summary": "Jazzy backed Theme is an attractive theme for backend", "description": """Minimalist and elegant backend theme for Odoo Backend""", diff --git a/jazzy_backend_theme/doc/RELEASE_NOTES.md b/jazzy_backend_theme/doc/RELEASE_NOTES.md index 854b921d3..ff61ecc04 100644 --- a/jazzy_backend_theme/doc/RELEASE_NOTES.md +++ b/jazzy_backend_theme/doc/RELEASE_NOTES.md @@ -1,9 +1,11 @@ ## Module #### 01.01.2025 - #### Version 18.0.1.0.0 - ##### ADD - - Initial commit for Jazzy Backend Theme + +#### 12.10.2025 +#### Version 18.0.1.0.1 +##### UPDT +- Updated the menu item handle click function. diff --git a/jazzy_backend_theme/static/src/components/app_menu/search_apps.js b/jazzy_backend_theme/static/src/components/app_menu/search_apps.js index 3df97043d..d187c400e 100644 --- a/jazzy_backend_theme/static/src/components/app_menu/search_apps.js +++ b/jazzy_backend_theme/static/src/components/app_menu/search_apps.js @@ -14,6 +14,7 @@ patch(NavBar.prototype, { this._search_def = this.createDeferred(); this.search_container = useRef("search-container"); this.search_input = useRef("search-input"); + this.menuServices = useService("menu"); this.search_result = useRef("search-results"); this.app_menu = useRef("app-menu"); this.sidebar_panel = useRef("sidebar_panel"); @@ -144,16 +145,8 @@ patch(NavBar.prototype, { navChild[i].classList.add('d-block'); } } - if (menu) { - this.menuService.selectMenu(menu) - .then(() => { - // Trigger page refresh after the menu is loaded - location.reload(); - }) - .catch(err => { - console.error('Menu navigation failed:', err); - }); + this.menuServices.selectMenu(menu.id); } }, OnClickMainMenu() {