if I am about to logout from odoo 16 I click on the current username and a list of menu appears and among them is My Odoo.com account, how to locate the file that contain the "My Odoo.com account"
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
Its coming from the JS. I update the JS code and it works for me:
/** @odoo-module **/
import { UserMenu } from "@web/webclient/user_menu/user_menu";
import { patch } from "@web/core/utils/patch";
import { registry } from "@web/core/registry";
const userMenuRegistry = registry.category("user_menuitems");patch(UserMenu.prototype, "your_odoo_module.UserMenu", {
setup() {
this._super.apply(this, arguments);
userMenuRegistry.remove("documentation");
userMenuRegistry.remove("support");
userMenuRegistry.remove("odoo_account");},
});
Here in this code removing odoo_account from registry ultimately removes the odoo_account menu.
Note: Don't forget to replace "your_odoo_module" with the actual technical name of your module!
File/Template name: web.user_menu
View location: addons/web/views/user_menu.xml
Menu rendered via: QWeb template
Can be modified via: View inheritance or template override
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký