Compare commits
3 commits
0bb950c454
...
7eea9baade
Author | SHA1 | Date | |
---|---|---|---|
![]() |
7eea9baade | ||
![]() |
c32fff0378 | ||
![]() |
0e1405b604 |
4 changed files with 10 additions and 5 deletions
2
.hgignore → .gitignore
vendored
2
.hgignore → .gitignore
vendored
|
@ -1,4 +1,4 @@
|
|||
syntax: glob
|
||||
*.pyc
|
||||
build/*
|
||||
mds_cashbook_bookcategory.egg-info/*
|
||||
dist/*
|
|
@ -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
7
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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[tryton]
|
||||
version=7.0.5
|
||||
version=7.0.6
|
||||
depends:
|
||||
cashbook
|
||||
xml:
|
||||
|
|
Loading…
Reference in a new issue