add user_id to context of ir.rule for cashbook.split
This commit is contained in:
parent
e79bcca989
commit
d2ad96db35
1 changed files with 3 additions and 1 deletions
4
ir.py
4
ir.py
|
@ -14,7 +14,9 @@ class Rule(metaclass=PoolMeta):
|
||||||
def _context_modelnames(cls):
|
def _context_modelnames(cls):
|
||||||
""" list of models to add 'user_id' to context
|
""" 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
|
@classmethod
|
||||||
def _get_context(cls, model_name):
|
def _get_context(cls, model_name):
|
||||||
|
|
Loading…
Reference in a new issue