Retrieve groups of actions without checking access

Closes #13506
This commit is contained in:
Cédric Krier
2024-09-12 16:33:03 +02:00
parent a75f6b3f9c
commit 2bce5d7240
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -1,3 +1,4 @@
* Retrieve groups of actions without checking access (#13506)
* Check read access of report records (#13505)
* Forbid editing cron when it is running
* Store last cron durations
+2 -1
View File
@@ -5,7 +5,7 @@ from trytond.cache import Cache
from trytond.model import DeactivableMixin, ModelSQL, fields
from trytond.pool import Pool, PoolMeta
from trytond.pyson import Eval
from trytond.transaction import Transaction
from trytond.transaction import Transaction, without_check_access
class UIMenu(metaclass=PoolMeta):
@@ -65,6 +65,7 @@ class Action(metaclass=PoolMeta):
class ActionMixin(metaclass=PoolMeta):
@classmethod
@without_check_access
def get_groups(cls, name, action_id=None):
# TODO add cache
domain = [