注释菜单debug

This commit is contained in:
Ivan Office
2024-04-03 20:09:34 +08:00
parent 5ac6b5d7ad
commit 5145821227
2 changed files with 6 additions and 3 deletions

View File

@@ -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',

View File

@@ -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,