Hi,
how to display or hide a menu item based on a custom boolean field in res.company in odoo 18 ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
how to display or hide a menu item based on a custom boolean field in res.company in odoo 18 ?
Hi,
Please refer to the following links:
Solved Forum:
1. https://www.odoo.com/id_ID/forum/help-1/hide-menuitem-based-on-company-id-194713
Module:
1. https://apps.odoo.com/apps/modules/18.0/hide_menu_user
2. https://odoo-community.org/shop/base-menu-visibility-restriction-5743#attr=942885
Hope it helps.
You can't use a random boolean to show/hide a menu item because the invisible-attribute is not valid for menuitem-nodes.
<menuitem/> visibility can be controlled with access rights and the groups-attribute only.
Ref: https://github.com/odoo/odoo/blob/18.0/addons/account/views/account_menuitem.xml#L9
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-se