diff --git a/.gitignore b/.hgignore similarity index 86% rename from .gitignore rename to .hgignore index 7ff2f3a..c840977 100644 --- a/.gitignore +++ b/.hgignore @@ -1,4 +1,4 @@ -*.pyc +syntax: glob build/* dist/* mds_cashbook_report.egg-info/* diff --git a/README.rst b/README.rst index 2c51d72..b7c0978 100644 --- a/README.rst +++ b/README.rst @@ -29,10 +29,6 @@ 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 @@ -44,3 +40,4 @@ Changes *7.0.8 - 06.12.2023* - compatibility to Tryton 7.0 + diff --git a/ir.py b/ir.py index 0a74a0a..1573ebf 100644 --- a/ir.py +++ b/ir.py @@ -3,6 +3,7 @@ # 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 @@ -11,16 +12,10 @@ class Rule(metaclass=PoolMeta): @classmethod def _context_modelnames(cls): + """ list of models to add 'user_id' to context """ - - Returns: - set: model-names - """ - result = super(Rule, cls)._context_modelnames() - return result | { - 'ir.action.act_window', - 'cashbook_report.evaluation', - } + return super(Rule, cls)._context_modelnames() + [ + 'ir.action.act_window', 'cashbook_report.evaluation'] # end Rule diff --git a/tryton.cfg b/tryton.cfg index 7caf374..5f92dba 100644 --- a/tryton.cfg +++ b/tryton.cfg @@ -1,5 +1,5 @@ [tryton] -version=7.0.11 +version=7.0.10 depends: res cashbook