|
@ -46,6 +46,8 @@ class AuditlogHTTPRequest(models.Model): |
|
|
first call. |
|
|
first call. |
|
|
If no HTTP request is available, returns `False`. |
|
|
If no HTTP request is available, returns `False`. |
|
|
""" |
|
|
""" |
|
|
|
|
|
if not request: |
|
|
|
|
|
return False |
|
|
http_session_model = self.env['auditlog.http.session'] |
|
|
http_session_model = self.env['auditlog.http.session'] |
|
|
httprequest = request.httprequest |
|
|
httprequest = request.httprequest |
|
|
if httprequest: |
|
|
if httprequest: |
|
|