From 2df53593f068f2580d363836894cfb3ff458673d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 12 Sep 2020 10:00:03 +0200 Subject: [PATCH] Count active session instead of only fresh one issue9580 review325991002 --- 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 82d04c4eb1..67576a3b89 100644 --- a/trytond/res/user.py +++ b/trytond/res/user.py @@ -314,7 +314,7 @@ class User(DeactivableMixin, ModelSQL, ModelView): Session = Pool().get('ir.session') now = datetime.datetime.now() timeout = datetime.timedelta( - seconds=config.getint('session', 'timeout')) + seconds=config.getint('session', 'max_age')) result = dict((u.id, 0) for u in users) with Transaction().set_user(0): for sub_ids in grouped_slice(users):