Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Base

Entity: res.session

Compute Method: _compute_is_current

Inputs Method Outputs
  • session_identifier
if not request:
            self.is_current = False
            return
session_identifier = request.session.sid[:STORED_SESSION_BYTES]
for session in self:
            session.is_current = session.session_identifier == session_identifier

Back to entity