Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
development:override_an_existing_record_rules [2022/03/07 09:31] – [3- A record rule has:] aziz | development:override_an_existing_record_rules [2022/03/07 09:46] (current) – [Examples:] aziz | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | :todo: Giving context and examples | ||
- | |||
<code xml> | <code xml> | ||
Line 31: | Line 29: | ||
===== 3- A record rule has: ===== | ===== 3- A record rule has: ===== | ||
- | - Name | + | * Name |
<code xml> | <code xml> | ||
<field name = " | <field name = " | ||
- | </xml> | + | </code> |
- | - Model on which it applies | + | * Model on which it applies |
<code xml> | <code xml> | ||
<field ref = " | <field ref = " | ||
- | </xml> | + | </code> |
- | - Set of user groups to which the rule applies, if no group is specified the rule is global | + | * Set of user groups to which the rule applies, if no group is specified the rule is global |
<code xml> | <code xml> | ||
<field name = " | <field name = " | ||
- | <xml> | + | </code> |
- | - Domain used to check whether a given record matches the rule (and is accessible) or does not (and is not accessible). | + | * Domain used to check whether a given record matches the rule (and is accessible) or does not (and is not accessible). |
<code xml> | <code xml> | ||
<field name=" | <field name=" | ||
- | </xml> | + | </code> |
- | ===== Examples: ===== | + | ===== Domain examples: ===== |
Group : Sales / User: Own Documents Only | Group : Sales / User: Own Documents Only | ||
+ | < | ||
[' | [' | ||
(' | (' | ||
(' | (' | ||
] | ] | ||
+ | </ | ||
+ | |||
This mean: | This mean: | ||
- user can access just to his own orders / quotations . | - user can access just to his own orders / quotations . | ||
Line 68: | Line 69: | ||
Group : Sales / User: All Documents | Group : Sales / User: All Documents | ||
- | [(1,' | + | '' |
This will grant access to ALL Sales Orders / Quotations. | This will grant access to ALL Sales Orders / Quotations. | ||