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

How do global and group-restricted record rules interact?

1.Global rules cannot be bypassed, and group-specific rules only restrict access within their bounds

2.Global rules can be augmented by group-specific rules to widen a user's access to a model

3.Global rules are ignored if a group-specific rule applies to a user

4.I don't know

Tell me which option is correct?

頭像
捨棄
最佳答案

Here's the documentation in case you hadn't found it: Security in Odoo. Specifically, see below:

Global rules versus group rules

There is a large difference between global and group rules in how they compose and combine:

  • Global rules intersect, if two global rules apply then both must be satisfied for the access to be granted, this means adding global rules always restricts access further.
  • Group rules unify, if two group rules apply then either can be satisfied for the access to be granted. This means adding group rules can expand access, but not beyond the bounds defined by global rules.
  • The global and group rulesets intersect, which means the first group rule being added to a given global ruleset will restrict access.

So your option 1 is closest to reality. Option 2 is incorrect since global and group rules intersect, which means they narrow access, not widen it. Option 3 is incorrect since global rules always apply.

In essence, global rules are always applied and group rules can specify them even more.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
8月 25
987
2
3月 25
1401
1
3月 23
2553
1
3月 25
1313
2
11月 24
1524