changeset 07da0eddd9cb in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset&node=07da0eddd9cb
description:
Document all context keys of rule domain
diffstat:
trytond/ir/rule.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (15 lines):
diff -r b6b7ecbe1286 -r 07da0eddd9cb trytond/ir/rule.py
--- a/trytond/ir/rule.py Mon Oct 03 09:30:32 2022 +0200
+++ b/trytond/ir/rule.py Mon Oct 03 09:31:34 2022 +0200
@@ -103,8 +103,9 @@
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'}