Hello Uday,
It seems like you're trying to remove a specific user group from a menu item, which is a common requirement for customizing access rights in Odoo. The code snippet you've shared uses the eval
attribute with the operation 3
(which stands for removing a record from a many2many field) on groups_id
. However, if the menu item still appears, it might be due to one of the following reasons:
Ensure the module is upgraded
Verify the user is not assigned to another group that has access
Check if there's a parent menu item that's visible, making this item accessible
Instead of removing the group, you might want to explicitly set which groups can see the menu by using eval="[(6, 0, [ref('your_module.your_group_id')])]"
. This replaces the groups with the ones you specify (operation 6
sets a new list of records). Here's how you can adjust your code:
<record id="account.menu_finance_entries" model="ir.ui.menu">
<field name="groups_id" eval="[(6, 0, [ref('base_accounting_kit.group_account_cashier')])]" />
</record>
Remember to upgrade your module after making changes to ensure they take effect. If the issue persists, it might be beneficial to review the user's access rights in detail or consider creating a new group with the specific access rights needed.
For personalized assistance:
https://www.pragtech.co.in/contact-us-mql.html