Browse Source

Merge pull request #1243 from xtof-osd/10.0

[FIX] Avoid crash when using auth_session_timeout module with XML-RPC API
pull/1248/head
Pedro M. Baeza 7 years ago
committed by GitHub
parent
commit
0c4e06fff3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      auth_session_timeout/__manifest__.py
  2. 3
      auth_session_timeout/models/res_users.py

2
auth_session_timeout/__manifest__.py

@ -14,7 +14,7 @@
'maintainer': 'Odoo Community Association (OCA)',
'website': "http://acsone.eu",
'category': 'Tools',
'version': '10.0.1.0.1',
'version': '10.0.1.0.2',
'license': 'AGPL-3',
'data': [
'data/ir_config_parameter_data.xml'

3
auth_session_timeout/models/res_users.py

@ -105,5 +105,6 @@ class ResUsers(models.Model):
@classmethod
def check(cls, *args, **kwargs):
res = super(ResUsers, cls).check(*args, **kwargs)
http.request.env.user._auth_timeout_check()
if http.request:
http.request.env.user._auth_timeout_check()
return res
Loading…
Cancel
Save