From 5145821227c2276ba0c4e0ef038bb2b51bc4708b Mon Sep 17 00:00:00 2001 From: Ivan Office Date: Wed, 3 Apr 2024 20:09:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E8=8F=9C=E5=8D=95debug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app_odoo_customize/__manifest__.py | 2 +- app_odoo_customize/static/src/js/navbar.js | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app_odoo_customize/__manifest__.py b/app_odoo_customize/__manifest__.py index 7e12371d..63203f6e 100644 --- a/app_odoo_customize/__manifest__.py +++ b/app_odoo_customize/__manifest__.py @@ -23,7 +23,7 @@ { 'name': 'odoo17 Tweak,Ai Employee,Boost,Customize All in One. Customize,UI,Boost,Security,Data', - 'version': '16.24.03.27', + 'version': '16.24.04.03', 'author': 'odooai.cn', 'category': 'Extra Tools', 'website': 'https://www.odooai.cn', diff --git a/app_odoo_customize/static/src/js/navbar.js b/app_odoo_customize/static/src/js/navbar.js index c75e520d..d34e07ba 100644 --- a/app_odoo_customize/static/src/js/navbar.js +++ b/app_odoo_customize/static/src/js/navbar.js @@ -9,7 +9,8 @@ import {qweb} from 'web.core'; patch(NavBar.components.MenuDropdown.prototype, 'app_odoo_customize/static/src/js/menu_dropdown.js', { setup() { this._super(); - useEffect(() => this.addDebugTooltip()); + //todo: 鼠标移开要不显示,当前太妨碍 + // useEffect(() => this.addDebugTooltip()); }, addDebugTooltip() { if (config.isDebug()) { @@ -53,7 +54,8 @@ NavBar.components.MenuDropdown.props.payload = { patch(NavBar.components.DropdownItem.prototype, 'app_odoo_customize/static/src/js/menu_item.js', { setup() { this._super(); - useEffect(() => this.addDebugTooltip()); + //todo: 鼠标移开要不显示,当前太妨碍 + // useEffect(() => this.addDebugTooltip()); }, addDebugTooltip() { if (config.isDebug()) { @@ -84,6 +86,7 @@ patch(NavBar.components.DropdownItem.prototype, 'app_odoo_customize/static/src/j }; } }) + NavBar.components.DropdownItem.props.payload = { type: Object, optional: true,