From b527db6fe5d0dbdb7bd30591ce7477326370ab82 Mon Sep 17 00:00:00 2001 From: Frederik Jaeckel Date: Fri, 19 Jul 2024 17:11:07 +0200 Subject: [PATCH 1/3] update gitignore --- .hgignore => .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .hgignore => .gitignore (86%) diff --git a/.hgignore b/.gitignore similarity index 86% rename from .hgignore rename to .gitignore index c840977..7ff2f3a 100644 --- a/.hgignore +++ b/.gitignore @@ -1,4 +1,4 @@ -syntax: glob +*.pyc build/* dist/* mds_cashbook_report.egg-info/* From ced2dadeda40cb10c456b437d5d2fde40fe2ee3f Mon Sep 17 00:00:00 2001 From: Frederik Jaeckel Date: Fri, 19 Jul 2024 17:11:39 +0200 Subject: [PATCH 2/3] use irrulecontext to control context of ir.rule --- ir.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/ir.py b/ir.py index 1573ebf..0a74a0a 100644 --- a/ir.py +++ b/ir.py @@ -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 From 99a25ffc2ade46ed46a525e85739b3c805c50137 Mon Sep 17 00:00:00 2001 From: Frederik Jaeckel Date: Fri, 19 Jul 2024 17:15:37 +0200 Subject: [PATCH 3/3] Version 7.0.11 --- README.rst | 5 ++++- tryton.cfg | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index b7c0978..2c51d72 100644 --- a/README.rst +++ b/README.rst @@ -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 - diff --git a/tryton.cfg b/tryton.cfg index 5f92dba..7caf374 100644 --- a/tryton.cfg +++ b/tryton.cfg @@ -1,5 +1,5 @@ [tryton] -version=7.0.10 +version=7.0.11 depends: res cashbook