跳至內容
選單
此問題已被標幟
1 回覆
6118 瀏覽次數

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

頭像
捨棄
最佳答案

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
8月 24
2114
1
1月 17
3279
1
7月 16
7863
3
12月 23
21738
1
11月 15
5017