Compare commits
2 commits
a98b4387c4
...
1bfa987746
Author | SHA1 | Date | |
---|---|---|---|
![]() |
1bfa987746 | ||
![]() |
f7fee173d7 |
2 changed files with 5 additions and 4 deletions
2
.hgignore → .gitignore
vendored
2
.hgignore → .gitignore
vendored
|
@ -1,4 +1,4 @@
|
||||||
syntax: glob
|
*.pyc
|
||||||
build/*
|
build/*
|
||||||
mds_cashbook_bookcategory.egg-info/*
|
mds_cashbook_bookcategory.egg-info/*
|
||||||
dist/*
|
dist/*
|
7
ir.py
7
ir.py
|
@ -3,7 +3,6 @@
|
||||||
# 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
|
||||||
|
|
||||||
|
|
||||||
|
@ -14,7 +13,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 super(Rule, cls)._context_modelnames() + [
|
result = super(Rule, cls)._context_modelnames()
|
||||||
'cashbook.bookcategory']
|
return result | {
|
||||||
|
'cashbook.bookcategory',
|
||||||
|
}
|
||||||
|
|
||||||
# end Rule
|
# end Rule
|
||||||
|
|
Loading…
Reference in a new issue