Compare commits
No commits in common. "766e05a175ff8a49314bfa53f32dd3d7336b9b15" and "e007cea2cd25a38f53f87a39bb969de52e48b3b6" have entirely different histories.
766e05a175
...
e007cea2cd
2 changed files with 5 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
||||||
*.pyc
|
syntax: glob
|
||||||
build/*
|
build/*
|
||||||
dist/*
|
dist/*
|
||||||
mds_cashbook_report.egg-info/*
|
mds_cashbook_report.egg-info/*
|
13
ir.py
13
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
|
||||||
|
|
||||||
|
|
||||||
|
@ -11,16 +12,10 @@ class Rule(metaclass=PoolMeta):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _context_modelnames(cls):
|
def _context_modelnames(cls):
|
||||||
|
""" list of models to add 'user_id' to context
|
||||||
"""
|
"""
|
||||||
|
return super(Rule, cls)._context_modelnames() + [
|
||||||
Returns:
|
'ir.action.act_window', 'cashbook_report.evaluation']
|
||||||
set: model-names
|
|
||||||
"""
|
|
||||||
result = super(Rule, cls)._context_modelnames()
|
|
||||||
return result | {
|
|
||||||
'ir.action.act_window',
|
|
||||||
'cashbook_report.evaluation',
|
|
||||||
}
|
|
||||||
|
|
||||||
# end Rule
|
# end Rule
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue