Set label on form view as help text of record rules

This commit is contained in:
Cédric Krier committed 2024-11-27 19:58:38 +01:00
1 parent 3e45df410f
commit 25322bc0d1
2 files changed
+3 -5

No files matched your search

+3 -1
View File
@@ -66,7 +66,9 @@ class RuleGroup(
],
help="Add this rule to all users by default.")
rules = fields.One2Many('ir.rule', 'rule_group', 'Tests',
help="The rule is satisfied if at least one test is True.")
help="The rule is satisfied if at least one test is True.\n"
"If there is no test defined, "
"the rule is always satisfied if not global.")
perm_read = fields.Boolean('Read Access')
perm_write = fields.Boolean('Write Access')
perm_create = fields.Boolean('Create Access')
@@ -21,8 +21,4 @@ this repository contains the full copyright notices and license terms. -->
<label name="name"/>
<field name="name" colspan="5"/>
<field name="rules" colspan="6"/>
<label string="The rule is satisfied if at least one test is True."
colspan="6" xalign="0.0" id="satisfied"/>
<label string="If there is no test defined, the rule is always satisfied if not global."
colspan="6" xalign="0.0" id="no_test"/>
</form>