add user_id to context of ir.rule for cashbook.split

This commit is contained in:
Frederik Jaeckel 2023-12-13 21:52:27 +01:00
parent e79bcca989
commit d2ad96db35

4
ir.py
View file

@ -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):