Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
6112 Vistas

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
Descartar
Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
ago 24
2098
1
ene 17
3271
1
jul 16
7847
3
dic 23
21735
1
nov 15
5014