Compare commits

..

3 commits

Author SHA1 Message Date
Frederik Jaeckel
99a25ffc2a Version 7.0.11 2024-07-19 17:15:37 +02:00
Frederik Jaeckel
ced2dadeda use irrulecontext to control context of ir.rule 2024-07-19 17:14:17 +02:00
Frederik Jaeckel
b527db6fe5 update gitignore 2024-07-19 17:14:13 +02:00
4 changed files with 15 additions and 7 deletions

View file

@ -1,4 +1,4 @@
syntax: glob
*.pyc
build/*
dist/*
mds_cashbook_report.egg-info/*

View file

@ -29,6 +29,10 @@ so that you can display several evaluations at the same time.
Changes
=======
*7.0.11 - 18.07.2024*
- updt: optimize check of permissions
*7.0.10 - 13.01.2024*
- add: multiple data sources in evaluations
@ -40,4 +44,3 @@ Changes
*7.0.8 - 06.12.2023*
- compatibility to Tryton 7.0

13
ir.py
View file

@ -3,7 +3,6 @@
# The COPYRIGHT file at the top level of this repository contains the
# full copyright notices and license terms.
from trytond.transaction import Transaction
from trytond.pool import PoolMeta
@ -12,10 +11,16 @@ class Rule(metaclass=PoolMeta):
@classmethod
def _context_modelnames(cls):
""" list of models to add 'user_id' to context
"""
return super(Rule, cls)._context_modelnames() + [
'ir.action.act_window', 'cashbook_report.evaluation']
Returns:
set: model-names
"""
result = super(Rule, cls)._context_modelnames()
return result | {
'ir.action.act_window',
'cashbook_report.evaluation',
}
# end Rule

View file

@ -1,5 +1,5 @@
[tryton]
version=7.0.10
version=7.0.11
depends:
res
cashbook