parameters: (self)
docstring: The session start is sudo'ed to allow survey user to manage sessions of surveys
          they do not own.
  
          We flush after writing to make sure it's updated before bus takes over.
docstring_summary: The session start is sudo'ed to allow survey user to manage sessions of surveys
          they do not own.
docstring_tokens: The session start is sudo ed to allow survey user to manage sessions of surveys they do not own .
function: def _session_open(self):
          """ The session start is sudo'ed to allow survey user to manage sessions of surveys
          they do not own.
  
          We flush after writing to make sure it's updated before bus takes over. """
  
          if self.env.user.has_group('survey.group_survey_user'):
              self.sudo().write({'session_state': 'in_progress'})
              self.sudo().flush(['session_state'])
function_tokens: def _session_open ( self ) : if self . env . user . has_group ( 'survey.group_survey_user' ) : self . sudo ( ) . write ( { 'session_state' : 'in_progress' } ) self . sudo ( ) . flush ( [ 'session_state' ] )