Browse Source

corrects AttributeError: 'HttpRequest' object has no attribute 'http' (#1070)

* corrects AttributeError: 'HttpRequest' object has no attribute 'http'

* updates the module version number for pull request #1070
pull/1077/head
Daniel Masi 7 years ago
committed by Dave Lasley
parent
commit
8d4ef5a607
  1. 2
      auth_session_timeout/__manifest__.py
  2. 2
      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.0',
'version': '10.0.1.0.1',
'license': 'AGPL-3',
'data': [
'data/ir_config_parameter_data.xml'

2
auth_session_timeout/models/res_users.py

@ -90,7 +90,7 @@ class ResUsers(models.Model):
# Else, conditionally update session modified and access times
ignored_urls = self._auth_timeout_get_ignored_urls()
if http.request.http.request.path not in ignored_urls:
if http.request.httprequest.path not in ignored_urls:
if 'path' not in locals():
path = http.root.session_store.get_session_filename(
session.sid,

Loading…
Cancel
Save