mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
fix menu bug
This commit is contained in:
@@ -46,7 +46,7 @@ patch(UserMenu.prototype, "app_odoo_customize.UserMenu", {
|
||||
}
|
||||
if (session.app_show_account) {
|
||||
userMenuRegistry.add("odoo_account", odooAccountItem, {'force': true});
|
||||
} else if (userMenuRegistry.get('odoo_account')){
|
||||
} else if (userMenuRegistry.get('odoo_account', false)){
|
||||
try {
|
||||
userMenuRegistry.remove("odoo_account");
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user