Skip to Content
Menu
This question has been flagged
1 Reply
2899 Views

all Users can see and access other modules and apps module even if I uncheck the access.


How can I hide modules from other users?




Avatar
Discard
Author

Thank you for your answer, I tried your solution but still have the app module in the menu and when I click the link redirects me to https://apps.odoo.com/apps/themes, Actually I think there is a bug in Odoo 16 because I installed the HR module and after installation, I found all users have HR administration privilege.

When you create a new user, Odoo depend on base.default_user and this user named (Default User Template) and it's inactive and it's given the administrator access for all modules except the Administration. So, after installing all your modules and before creating users, you can filter the inactive user and open (Default User Template) user and change his access as you want and save. Now if you try to create a new user, Odoo will fill the default access same as Default User Template user.

In Odoo 16, When you install a new app, all users will have admin access for this installed app but in old versions, it's not set any access for this installed app except for default user template and admin and demo (if you are installed Odoo with demo).

This new way implemented in the write method of res.users model as you can see below:

https://github.com/odoo/odoo/blob/16.0/odoo/addons/base/models/res_users.py#L603
They Sync added groups on default user template to existing users and since the default user template always given admin access so the access will be sync to all internal users

Best Answer

New module (base_install_request) in Odoo 16 allow regular users to see the apps and request installation from their database administrator.   

In the Access rules you will see the internal user has read access to Module model:


In the menu, you will all users have access to Apps:

So you can change the access from menu and from access rules.

Avatar
Discard