From 25322bc0d1df5cf1515083056dc9aca59bb9f5a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 27 Nov 2024 19:58:38 +0100 Subject: [PATCH] Set label on form view as help text of record rules --- trytond/trytond/ir/rule.py | 4 +++- trytond/trytond/ir/view/rule_group_form.xml | 4 ---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/trytond/trytond/ir/rule.py b/trytond/trytond/ir/rule.py index 210d0374a3..4b115d61a0 100644 --- a/trytond/trytond/ir/rule.py +++ b/trytond/trytond/ir/rule.py @@ -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') diff --git a/trytond/trytond/ir/view/rule_group_form.xml b/trytond/trytond/ir/view/rule_group_form.xml index cff058f063..19160c5566 100644 --- a/trytond/trytond/ir/view/rule_group_form.xml +++ b/trytond/trytond/ir/view/rule_group_form.xml @@ -21,8 +21,4 @@ this repository contains the full copyright notices and license terms. -->