Skip to Content
Menu
This question has been flagged

hello everyone, i'm kind of new in odoo. I'm currently in a project where i have to develop a group that has access only to one wizard in odoo 12. I want the user to have access only to one wizard and nothing more.

So i defined a group like this:

<record model="res.groups" id="new_group">
<field name="name">New group</field>
<field name="category_id" ref="base.module_category_administration"/>
</record>

then i gave the access rigths like this:

id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink

access_model,module.model.access,module.model_name,,0,0,0,0

access_model_second,module.model.access_second,module.model_name,new_group,1,0,0,0


With this configuration when i login in to the server the user belonging to the new_group does not have access to anything. 

But with xmlrpc the user can read from res.users and res.partner and so on depending on the modules installed on the server.

As i've explained i want the user belonging to this group to only have access to the wizard and nothing more.

I would appreciate any help.


Best regards 

Miguel Figueiredo

Avatar
Discard
Best Answer

Hello Miguel,

First access rights for Global it means for every one.

Second access rights for your new group only.

So the problem is global access rights overriding new group access rights.

The solution for this one is your new group should inherit from employee and first access rights belongs to employee group (base.group_user), the second access rights keep it as it is.

I hope your problem will solve after seeing this.

Avatar
Discard
Related Posts Replies Views Activity
2
Aug 24
1143
1
Jan 17
2666
1
Jul 16
7292
3
Dec 23
20963
1
Nov 15
4465