Compare commits
No commits in common. "1bfa98774620c0b2593cbfbc2fd1a15cce3c9718" and "a98b4387c4bac042d3d801b31f45b4e055b9a299" have entirely different histories.
1bfa987746
...
a98b4387c4
2 changed files with 4 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
*.pyc
|
syntax: glob
|
||||||
build/*
|
build/*
|
||||||
mds_cashbook_bookcategory.egg-info/*
|
mds_cashbook_bookcategory.egg-info/*
|
||||||
dist/*
|
dist/*
|
7
ir.py
7
ir.py
|
@ -3,6 +3,7 @@
|
||||||
# The COPYRIGHT file at the top level of this repository contains the
|
# The COPYRIGHT file at the top level of this repository contains the
|
||||||
# full copyright notices and license terms.
|
# full copyright notices and license terms.
|
||||||
|
|
||||||
|
from trytond.transaction import Transaction
|
||||||
from trytond.pool import PoolMeta
|
from trytond.pool import PoolMeta
|
||||||
|
|
||||||
|
|
||||||
|
@ -13,9 +14,7 @@ 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
|
||||||
"""
|
"""
|
||||||
result = super(Rule, cls)._context_modelnames()
|
return super(Rule, cls)._context_modelnames() + [
|
||||||
return result | {
|
'cashbook.bookcategory']
|
||||||
'cashbook.bookcategory',
|
|
||||||
}
|
|
||||||
|
|
||||||
# end Rule
|
# end Rule
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue