From dafad0babdeb476a9eeca8b5ead4dff67a2ff5f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 3 Oct 2022 09:31:34 +0200 Subject: [PATCH] Document all context keys of rule domain --- trytond/ir/rule.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/trytond/ir/rule.py b/trytond/ir/rule.py index e833f6ab01..2eb710317b 100644 --- a/trytond/ir/rule.py +++ b/trytond/ir/rule.py @@ -103,8 +103,9 @@ class Rule(ModelSQL, ModelView): rule_group = fields.Many2One('ir.rule.group', 'Group', select=True, required=True, ondelete="CASCADE") domain = fields.Char('Domain', required=True, - help='Domain is evaluated with a PYSON context containing:\n' - '- "user" as the current user') + help="Domain is evaluated with a PYSON context containing:" + '\n- "user" as the current user' + '\n- "groups" as list of ids from the current user') _domain_get_cache = Cache('ir_rule.domain_get', context=False) modes = {'read', 'write', 'create', 'delete'}