コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3940 ビュー

How does ACL behave when there is more than one access rights for the same object for the same group.

For example: There is two rights entries for the object 'partner' for the same group sale/manager, having different accesses.

res.partner.sale.manager      -     Partner        -      Sales / Manager

res.partner.crm.user         -          Partner     -        Sales / Manager

Which access right will be used?

アバター
破棄
最善の回答

It will take the access rights with OR condition of those 2 access lines

access1, base.model_res_partner,1,0,0,0
access2, base.model_res_partner,1,1,1,0

Output will be a OR condition of both access (1,1,1,0)

Note:
So, you should always overwrite existing access to satisfy your condition.
i.e. change the access available in odoo modules by using id="MODULENAME.EXISTING_ID"

E.g. to change access

base.access_res_partner_group_partner_manager,res_partner group_partner_manager,base.model_res_partner,base.group_partner_manager,1,1,1,0

 

アバター
破棄
関連投稿 返信 ビュー 活動
0
8月 23
8
2
11月 22
3128
2
3月 15
4406
1
3月 22
3106
0
9月 19
1890