From 0e1405b6045763bd6b0c551d8bf519e283a14721 Mon Sep 17 00:00:00 2001 From: Frederik Jaeckel Date: Fri, 19 Jul 2024 16:01:44 +0200 Subject: [PATCH 1/3] update gitignore --- .hgignore => .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .hgignore => .gitignore (87%) diff --git a/.hgignore b/.gitignore similarity index 87% rename from .hgignore rename to .gitignore index e2b39b0..88532e8 100644 --- a/.hgignore +++ b/.gitignore @@ -1,4 +1,4 @@ -syntax: glob +*.pyc build/* mds_cashbook_bookcategory.egg-info/* dist/* From c32fff03782013702327821e22805367503383df Mon Sep 17 00:00:00 2001 From: Frederik Jaeckel Date: Fri, 19 Jul 2024 16:02:19 +0200 Subject: [PATCH 2/3] Use 'irrulecontext' to add 'user_id' to context of ir.rule --- ir.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ir.py b/ir.py index 0e71a97..182092e 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 @@ -14,7 +13,9 @@ class Rule(metaclass=PoolMeta): def _context_modelnames(cls): """ list of models to add 'user_id' to context """ - return super(Rule, cls)._context_modelnames() + [ - 'cashbook.bookcategory'] + result = super(Rule, cls)._context_modelnames() + return result | { + 'cashbook.bookcategory', + } # end Rule From 7eea9baadecae6db273cdb6c7f70a9a49cbbb405 Mon Sep 17 00:00:00 2001 From: Frederik Jaeckel Date: Fri, 19 Jul 2024 16:04:22 +0200 Subject: [PATCH 3/3] Version 7.0.6 --- README.rst | 4 ++++ tryton.cfg | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 2745582..3960f9d 100644 --- a/README.rst +++ b/README.rst @@ -14,6 +14,10 @@ Requires Changes ======= +*7.0.6 - 19.07.2024* + +- updt: optimize check of permissions + *7.0.5 - 06.12.2023* - fix: permissions diff --git a/tryton.cfg b/tryton.cfg index 3a3738c..5677de5 100644 --- a/tryton.cfg +++ b/tryton.cfg @@ -1,5 +1,5 @@ [tryton] -version=7.0.5 +version=7.0.6 depends: cashbook xml: