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.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 5/1/15, 3:57 AM|
|Seen: 518 times|
|Last updated: 5/1/15, 5:31 AM|