parameters: (self)
return_statement: return action
docstring: Allow analyzing the attendees answers to event questions in a convenient way:
          - A graph view showing counts of each suggestions for simple_choice questions
            (Along with secondary pivot and tree views)
          - A tree view showing textual answers values for text_box questions.
docstring_summary: Allow analyzing the attendees answers to event questions in a convenient way:
          - A graph view showing counts of each suggestions for simple_choice questions
            (Along with secondary pivot and tree views)
          - A tree view showing textual answers values for text_box questions.
docstring_tokens: Allow analyzing the attendees answers to event questions in a convenient way : - A graph view showing counts of each suggestions for simple_choice questions ( Along with secondary pivot and tree views ) - A tree view showing textual answers values for text_box questions .
function: def action_view_question_answers(self):
          """ Allow analyzing the attendees answers to event questions in a convenient way:
          - A graph view showing counts of each suggestions for simple_choice questions
            (Along with secondary pivot and tree views)
          - A tree view showing textual answers values for text_box questions. """
          self.ensure_one()
          action = self.env["ir.actions.actions"]._for_xml_id("website_event_questions.action_event_registration_report")
          action['domain'] = [('question_id', '=', self.id)]
          if self.question_type == 'simple_choice':
              action['views'] = [(False, 'graph'), (False, 'pivot'), (False, 'tree')]
          elif self.question_type == 'text_box':
              action['views'] = [(False, 'tree')]
          return action
function_tokens: def action_view_question_answers ( self ) : self . ensure_one ( ) action = self . env [ "ir.actions.actions" ] . _for_xml_id ( "website_event_questions.action_event_registration_report" ) action [ 'domain' ] = [ ( 'question_id' , '=' , self . id ) ] if self . question_type == 'simple_choice' : action [ 'views' ] = [ ( False , 'graph' ) , ( False , 'pivot' ) , ( False , 'tree' ) ] elif self . question_type == 'text_box' : action [ 'views' ] = [ ( False , 'tree' ) ] return action