fix odoo customize

This commit is contained in:
ivan deng
2023-02-17 00:26:28 +08:00
parent 0e0cf4b854
commit ec5fdc4123
2 changed files with 5 additions and 1 deletions

View File

@@ -23,7 +23,7 @@
{ {
'name': 'odoo 16,15 Customize OEM(Boost, Data reset)', 'name': 'odoo 16,15 Customize OEM(Boost, Data reset)',
'version': '15.22.09.28', 'version': '15.23.02.17',
'author': 'Sunpop.cn', 'author': 'Sunpop.cn',
'category': 'Productivity', 'category': 'Productivity',
'website': 'https://www.sunpop.cn', 'website': 'https://www.sunpop.cn',

View File

@@ -11,6 +11,10 @@ const userMenuRegistry = registry.category("user_menuitems");
patch(UserMenu.prototype, "app_odoo_customize.UserMenu", { patch(UserMenu.prototype, "app_odoo_customize.UserMenu", {
setup() { setup() {
this._super.apply(this, arguments); this._super.apply(this, arguments);
userMenuRegistry.remove("debug");
userMenuRegistry.remove("asset_asset");
userMenuRegistry.remove("leave_debug");
userMenuRegistry.remove("separator0");
userMenuRegistry.remove("documentation"); userMenuRegistry.remove("documentation");
userMenuRegistry.remove("support"); userMenuRegistry.remove("support");
userMenuRegistry.remove("odoo_account"); userMenuRegistry.remove("odoo_account");