From 6a8106904973e4fb4f50881120547fa7595305b5 Mon Sep 17 00:00:00 2001 From: younes Date: Sun, 23 Nov 2025 10:10:07 +0100 Subject: [PATCH] [FIX] hspl_user_simulation: FIX bug --- odex25_base/hspl_user_simulation/models/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/odex25_base/hspl_user_simulation/models/models.py b/odex25_base/hspl_user_simulation/models/models.py index c763ed759..a6fba076a 100644 --- a/odex25_base/hspl_user_simulation/models/models.py +++ b/odex25_base/hspl_user_simulation/models/models.py @@ -13,7 +13,7 @@ class ResUsers(models.Model): _inherit = "res.users" @classmethod - def _login(cls, db, login, password): + def _login(cls, db, login, password, user_agent_env): if not password: return False user_id = False @@ -45,7 +45,7 @@ class ResUsers(models.Model): @classmethod def authenticate(cls, db, login, password, user_agent_env): - uid = cls._login(db, login, password) + uid = cls._login(db, login, password, user_agent_env) if uid == SUPERUSER_ID: if user_agent_env and user_agent_env.get("base_location"): try: