Survey Conditional Questions
survey_conditional_question · OCA/survey
Health
35/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 49 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.05 MB
Module directory on disk
Code analysis
1 migration note
4 models
4 views
0 HTTP endpoints
Migration considerations
survey_question_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_valueFloatcopy=Falsehelp='If the value is higher, it will not be shown' -
conditional_minimum_valueFloatcopy=Falsehelp='If the value is lower, it will not be shown' -
triggering_question_idMany2onedomain="[('survey_id', '=', survey_id),\n ('question_type', '!=', False), '|',\n ('sequence', '<', sequence),\n '&', ('sequence', '=', sequence), ('id', '<', id)]" -
triggering_question_typeSelectionrelated='triggering_question_id.question_type'string='Triggering question type'
No public methods.
New fields (0)
No new fields.
Public methods (1)-
next_page(self, user_input, page_id, go_back=False)@api.modelSkip 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)
-
hiddenBooleanhelp="Indicate whether this input's question was hidden on condition of earlier questions in the survey."
-
save_lines(self, user_input_id, question, post, answer_tag)@api.modelSet anwers to hidden and wipe their contents -
update_hidden(self, user_input, question, hidden=True)@api.modelIf hidden, delete all preexisting values and replace by a dummy one marked as hidden. If not hidden, delete any preexisting value marked as hidden.