Survey Conditional Questions

survey_conditional_question
REPOSITORY
REPOSITORYOCA/survey
GIT
GIThttps://github.com/OCA/survey.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/survey/tree/14.0/survey_conditional_question
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYWarehouse Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Creu Blanca, ADHOC SA, Opener B.V.
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Creu Blanca, ADHOC SA, Opener B.V.
COMMITTERS
COMMITTERSEnric Tobella, Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/survey
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:13
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - survey
    - auth_signup
    - base_setup
    - base
    - web
    - mail
    - bus
    - web_tour
    - http_routing
    - gamification
    - web_kanban_gauge
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
assets_frontend Survey Conditional Assets ir.ui.view qweb Inherits survey.survey_assets
question_container question_container ir.ui.view qweb Inherits survey.question_container
survey_fill_form survey_fill_form ir.ui.view qweb Inherits survey.survey_fill_form
survey_question_form Form view for survey conditional question survey.question field Inherits survey.survey_question_form
Models touched (4)

New fields (4)
  • conditional_maximum_value Float
    copy=False help='If the value is higher, it will not be shown'
  • conditional_minimum_value Float
    copy=False help='If the value is lower, it will not be shown'
  • triggering_question_id Many2one
    domain="[('survey_id', '=', survey_id),\n ('question_type', '!=', False), '|',\n ('sequence', '<', sequence),\n '&', ('sequence', '=', sequence), ('id', '<', id)]"
  • triggering_question_type Selection
    related='triggering_question_id.question_type' string='Triggering question type'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • next_page(self, user_input, page_id, go_back=False)
    @api.model
    Skip pages that only have hidden questions on them, except if its the last page or the first page (in which case there is a configuration error in the survey).

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • hidden Boolean
    help="Indicate whether this input's question was hidden on condition of earlier questions in the survey."
Public methods (2)
  • save_lines(self, user_input_id, question, post, answer_tag)
    @api.model
    Set anwers to hidden and wipe their contents
  • update_hidden(self, user_input, question, hidden=True)
    @api.model
    If hidden, delete all preexisting values and replace by a dummy one marked as hidden. If not hidden, delete any preexisting value marked as hidden.