From e33ee369428704cd4ebe8c7a60c8b73600af3065 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 11 Mar 2021 19:17:59 +0100 Subject: [PATCH] Do not depend on context for get_groups cache issue10177 review330491005 --- trytond/res/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/res/user.py b/trytond/res/user.py index 9a75956ee8..aa828cfa1f 100644 --- a/trytond/res/user.py +++ b/trytond/res/user.py @@ -145,7 +145,7 @@ class User(DeactivableMixin, ModelSQL, ModelView): sessions = fields.Function(fields.Integer('Sessions'), 'get_sessions') _get_preferences_cache = Cache('res_user.get_preferences') - _get_groups_cache = Cache('res_user.get_groups') + _get_groups_cache = Cache('res_user.get_groups', context=False) _get_login_cache = Cache('res_user._get_login', context=False) @classmethod