Set label on form view as help text of record rules
This commit is contained in:
1 parent
3e45df410f
commit
25322bc0d1
2 files changed
+3
-5
No files matched your search
@@ -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>
|
||||
Reference in new issue
Block a user