Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
115 มุมมอง

Hi,

how to display or hide a menu item based on a custom boolean field in res.company in odoo 18 ?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง