mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
注释菜单debug
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': 'odoo17 Tweak,Ai Employee,Boost,Customize All in One. Customize,UI,Boost,Security,Data',
|
'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',
|
'author': 'odooai.cn',
|
||||||
'category': 'Extra Tools',
|
'category': 'Extra Tools',
|
||||||
'website': 'https://www.odooai.cn',
|
'website': 'https://www.odooai.cn',
|
||||||
|
|||||||
@@ -9,7 +9,8 @@ import {qweb} from 'web.core';
|
|||||||
patch(NavBar.components.MenuDropdown.prototype, 'app_odoo_customize/static/src/js/menu_dropdown.js', {
|
patch(NavBar.components.MenuDropdown.prototype, 'app_odoo_customize/static/src/js/menu_dropdown.js', {
|
||||||
setup() {
|
setup() {
|
||||||
this._super();
|
this._super();
|
||||||
useEffect(() => this.addDebugTooltip());
|
//todo: 鼠标移开要不显示,当前太妨碍
|
||||||
|
// useEffect(() => this.addDebugTooltip());
|
||||||
},
|
},
|
||||||
addDebugTooltip() {
|
addDebugTooltip() {
|
||||||
if (config.isDebug()) {
|
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', {
|
patch(NavBar.components.DropdownItem.prototype, 'app_odoo_customize/static/src/js/menu_item.js', {
|
||||||
setup() {
|
setup() {
|
||||||
this._super();
|
this._super();
|
||||||
useEffect(() => this.addDebugTooltip());
|
//todo: 鼠标移开要不显示,当前太妨碍
|
||||||
|
// useEffect(() => this.addDebugTooltip());
|
||||||
},
|
},
|
||||||
addDebugTooltip() {
|
addDebugTooltip() {
|
||||||
if (config.isDebug()) {
|
if (config.isDebug()) {
|
||||||
@@ -84,6 +86,7 @@ patch(NavBar.components.DropdownItem.prototype, 'app_odoo_customize/static/src/j
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
NavBar.components.DropdownItem.props.payload = {
|
NavBar.components.DropdownItem.props.payload = {
|
||||||
type: Object,
|
type: Object,
|
||||||
optional: true,
|
optional: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user