Use 'irrulecontext' to add 'user_id' to context of ir.rule
This commit is contained in:
parent
c296db125f
commit
18f194caa5
1 changed files with 3 additions and 3 deletions
6
ir.py
6
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
|
||||
|
|
Loading…
Reference in a new issue