parameters: (self)
docstring: Finalizes a partial session, should be called on MFA validation to
          convert a partial / pre-session into a full-fledged "logged-in" one
docstring_summary: Finalizes a partial session, should be called on MFA validation to
          convert a partial / pre-session into a full-fledged "logged-in" one
docstring_tokens: Finalizes a partial session should be called on MFA validation to convert a partial / pre - session into a full - fledged logged - in one
function: def finalize(self):
          """ Finalizes a partial session, should be called on MFA validation to
          convert a partial / pre-session into a full-fledged "logged-in" one
          """
          self.rotate = True
          request.uid = self.uid = self.pop('pre_uid')
          user = request.env(user=self.uid)['res.users'].browse(self.uid)
          self.session_token = user._compute_session_token(self.sid)
          self.get_context()
function_tokens: def finalize ( self ) : self . rotate = True request . uid = self . uid = self . pop ( 'pre_uid' ) user = request . env ( user = self . uid ) [ 'res.users' ] . browse ( self . uid ) self . session_token = user . _compute_session_token ( self . sid ) self . get_context ( )