Repository
OCA/survey · module folder · Try on Runboat
Module version
1.0.0
Category
Warehouse Management
Folder size
0.05 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/survey
Last tracking update
2026-08-07 07:47:48
Authors
Odoo Community Association (OCA), ADHOC SA, Opener B.V., Creu Blanca
Maintainers
Odoo Community Association (OCA), ADHOC SA, Opener B.V., Creu Blanca
Committers
Enric Tobella, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
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 form Inherits survey.survey_question_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

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.