From 89ec926ce91c1cdf7f1232275daac5607b02e4c1 Mon Sep 17 00:00:00 2001 From: Frederik Jaeckel Date: Wed, 13 Dec 2023 21:52:27 +0100 Subject: [PATCH] add user_id to context of ir.rule for cashbook.split --- ir.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ir.py b/ir.py index 1456371..4054d93 100644 --- a/ir.py +++ b/ir.py @@ -14,7 +14,9 @@ class Rule(metaclass=PoolMeta): def _context_modelnames(cls): """ list of models to add 'user_id' to context """ - return ['cashbook.book', 'cashbook.line', 'cashbook.recon'] + return [ + 'cashbook.book', 'cashbook.line', 'cashbook.recon', + 'cashbook.split'] @classmethod def _get_context(cls, model_name):