Hi, any one knows how to fix hiding menu? I tried to hide a parent menu on my module. My goal is to hide Sales Menu. Using this code:
<menuitem name="Sales" id="base.menu_base_partner" groups="my_mp5.group_hidden" sequence="20"/> but when i update my module nothing happened. The Sales Menu is still there.
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ờ
Anirudh, you may need to change the XML syntax to use the normal <record ...></record> syntax to change the groups.
Hi doe, can you give an example how to do that?
Alcaline, you can find a lot of examples in addons/hr_evaluation/security/hr_evaluation_security.xml
Like this:
<record id="base.menu_base_partner" model="ir.ui.menu"
<field name="groups_id" eval="[(6, False, (ref('my_mp5.group_hidden'),))]"/>
</record>
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ý