From 18f194caa573f25efd49cb4cc74f6444f2640599 Mon Sep 17 00:00:00 2001 From: Frederik Jaeckel Date: Fri, 19 Jul 2024 16:22:53 +0200 Subject: [PATCH] Use 'irrulecontext' to add 'user_id' to context of ir.rule --- ir.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ir.py b/ir.py index d3ec250..018dd8e 100644 --- a/ir.py +++ b/ir.py @@ -14,9 +14,9 @@ class Rule(metaclass=PoolMeta): """ list of models to add 'user_id' to context """ result = super(Rule, cls)._context_modelnames() - result.extend([ + return result | { 'cashbook.planner', - 'cashbook.planner.nextrun']) - return result + 'cashbook.planner.nextrun', + } # end Rule