From 2bce5d72407fb46e1b99a7de034bce6e706f3d49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 12 Sep 2024 16:33:03 +0200 Subject: [PATCH] Retrieve groups of actions without checking access Closes #13506 --- trytond/CHANGELOG | 1 + trytond/trytond/res/ir.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/trytond/CHANGELOG b/trytond/CHANGELOG index cb0a8f11dd..484b63db6f 100644 --- a/trytond/CHANGELOG +++ b/trytond/CHANGELOG @@ -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 diff --git a/trytond/trytond/res/ir.py b/trytond/trytond/res/ir.py index a17bcc98cb..1d94dd60b6 100644 --- a/trytond/trytond/res/ir.py +++ b/trytond/trytond/res/ir.py @@ -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 = [