Merge pull request #5489 from expsa/you_dev_odex25_base

[FIX] hspl_user_simulation: FIX bug
This commit is contained in:
kchyounes19 2025-11-23 10:12:21 +01:00 committed by GitHub
commit b450f5e27c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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: