Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I am facing an issue, that is if i had a user who can view only sales menu , problem is if i tried to paste the url of other menu eg stock.move then it is showing the particular screen, How this can be blocked..... anyone give me a suggestion how to do this........
It sounds like he can't see the view, but have you changed his access rights to the stock.move model?
From the odoo documentation:
If you restrict the user's access to the stock.move model, for example, they should not be able to load the view without read permissions, even if they enter the URL to load the appropriate action. You can find Access Rights under Settings > Technical > Database Structure > Models > Select your Model > Access Rights.
Managed by the ir.model.access records, defines access to a whole model.
Each access control has a model to which it grants permissions, the permissions it grants and optionally a group.
Access controls are additive, for a given model a user has access all permissions granted to any of its groups: if the user belongs to group A which allows writing and group B which allows deleting, he can both write and delete.
If no group is specified, the access control applies to all users, otherwise it only applies to the users belonging to the specific group.
Available permissions are creation (perm_create), searching and reading (perm_read), updating existing records (perm_write) and deleting existing records (perm_unlink)
Furthermore, don't forget that permissions can be tricky. You need to make sure that every group that the user is a part of doesn't have access to that model. I ran a test to confirm and the user should get an access denied error message when they load the view.
If you don't see this error and the view shows up check you permissions again.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 5/1/15, 3:57 AM|
|Seen: 832 times|
|Last updated: 5/1/15, 5:31 AM|