Compare commits

..

3 commits

Author SHA1 Message Date
Frederik Jaeckel
7eea9baade Version 7.0.6 2024-07-19 16:04:22 +02:00
Frederik Jaeckel
c32fff0378 Use 'irrulecontext' to add 'user_id' to context of ir.rule 2024-07-19 16:02:50 +02:00
Frederik Jaeckel
0e1405b604 update gitignore 2024-07-19 16:02:46 +02:00
4 changed files with 10 additions and 5 deletions

View file

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

View file

@ -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

7
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
@ -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

View file

@ -1,5 +1,5 @@
[tryton]
version=7.0.5
version=7.0.6
depends:
cashbook
xml: