Hi, If you or some one still got this issue like i've faced in odoo 15, then you guys can follow my solution:
First, create new user group and assign your user to that user group.
Here's how you can create new user group by code, other things you can do in admin without coding:
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="0">
<!-- create new user group category -->
<record model="ir.module.category" id="z_mrp_production_for_baan_group_category">
<field name="name">MRP Production For Baan Category</field>
<field name="description">MRP Production For Baan Category</field>
<!-- sequence is the order of this user group in user detail page -->
<field name="sequence">99</field>
</record>
<!-- create new user group -->
<record id="z_mrp_production_for_baan_access_to_view" model="res.groups">
<field name="name">MRP Production For Baan Access To View</field>
<!-- based on above category (z_mrp_production_for_baan_group_category) -->
<field name="category_id" ref="z_mrp_production_for_baan_group_category"/>
</record>
</data>
</odoo>
Upgrade the module to make this work.
Then you go to Settings -> Security -> Access Right -> search “act_window”, you will see 3 records that use user group “administration / settings”, duplicate those 3 records and assign your user group to that.
That's the idea.
How to duplicate? Follow this instruction:
Click on "Action Window" on "Model" Column, you will see an External Link show up, click on it to open "ir.actions.act_window" model popup => go to "access right" tab => create new record with your created user group above.
Done. Don't forget to restart the server after this just to make sure everything work good.
Note:
Do not create access right by code for "ir.actions.act_window" because it will causing an issue about can't find the model.
Also, Do not assign your user to user group “administration / settings” because that will make that user can see the "Settings" menu.
Thanks for reading, hope it's help you guys.
Did you find the solution yet?