survey.question: fields, relations and API
The survey.question model ("Survey Question") is a persistent model declared by the Surveys module, then extended by 1 other module. It exposes 65 fields, 59 of them declared directly on the model; 10 fields from other models point to it. Below you will find every field with its technical name, type, label and relations, followed by an Odoo 19 JSON-2 API call.
Model identity
- Technical name
survey.question- Label
- Survey Question
- Type
- Persistent (models.Model)
- SQL table
survey_question- Origin module
- Surveys (
survey) - Extended by
- survey_crm
- Default order (_order)
sequence,id- Display field (_rec_name)
title
Model fields
59 own fields, 0 inherited from mixins and 6 automatic ORM fields. Click a name to get a direct link to that field.
65 of 65 fields shown
| Technical name | Label | Type | Details |
|---|---|---|---|
| allowed_triggering_question_ids | Allowed Triggering Questions | many2many | computed |
| answer_date | Correct date answer Correct date answer for this question. | date | |
| answer_datetime | Correct datetime answer Correct date and time answer for this question. | datetime | |
| answer_numerical_box | Correct numerical answer Correct number answer for this question. | float | |
| answer_score | Score Score value for a correct answer to this question. | float | |
| background_image | Background Image | image | computed, stored |
| background_image_url | Background Url | char | computed |
| comment_count_as_answer | Comment is an answer | boolean | |
| comments_allowed | Show Comments Field | boolean | |
| comments_message | Comment Message | char | translatable |
| constr_error_msg | Error message | char | translatable |
| constr_mandatory | Mandatory Answer | boolean | |
| description | Description Use this field to add additional explanations about your question or to illustrate it with pictures or a video | html | translatable |
| generate_lead | Lead Generating At least one of the question answers can generate leads. | boolean | computed added by Survey CRM ( |
| has_image_only_suggested_answer | Has image only suggested answer | boolean | computed |
| is_page | Is a page? | boolean | |
| is_placed_before_trigger | Is misplaced? Is this question placed before any of its trigger questions? | boolean | computed |
| is_scored_question | Scored Include this question as part of quiz scoring. Requires an answer and answer score to be taken into account. | boolean | computed, stored |
| is_time_customized | Customized speed rewards | boolean | |
| is_time_limited | The question is limited in time Currently only supported for live sessions. | boolean | |
| matrix_row_ids | Matrix Rows Labels used for proposed choices: rows of matrix | one2many | inverse: |
| matrix_subtype | Matrix Type | selection | Values: |
| page_id | Page | many2one | computed, stored |
| question_ids | Questions | one2many | computed |
| question_placeholder | Placeholder | char | computed, storedtranslatable |
| question_type | Question Type | selection | computed, stored Values: |
| questions_selection | Questions Selection If randomized is selected, add the number of random questions next to the section. | selection | read-only related: |
| random_questions_count | # Questions Randomly Picked Used on randomized sections to take X random questions from all the questions of that section. | integer | |
| save_as_email | Save as user email If checked, this option will save the user's answer as its email address. | boolean | computed, stored |
| save_as_nickname | Save as user nickname If checked, this option will save the user's answer as its nickname. | boolean | computed, stored |
| scale_max | Scale Maximum Value | integer | |
| scale_max_label | Scale Maximum Label | char | translatable |
| scale_mid_label | Scale Middle Label | char | translatable |
| scale_min | Scale Minimum Value | integer | |
| scale_min_label | Scale Minimum Label | char | translatable |
| scoring_type | Scoring Type | selection | read-only related: |
| sequence | Sequence | integer | |
| session_available | Live Session available | boolean | read-only related: |
| suggested_answer_ids | Types of answers Labels used for proposed choices: simple choice, multiple choice and columns of matrix | one2many | inverse: |
| survey_id | Survey | many2one | |
| survey_session_speed_rating | Survey Session Speed Rating | boolean | related: |
| survey_session_speed_rating_time_limit | General Time limit (seconds) | integer | related: |
| survey_type | Survey Type | selection | related: added by Survey CRM ( |
| time_limit | Time limit (seconds) | integer | |
| title | Title | char | requiredtranslatable |
| triggering_answer_ids | Triggering Answers Picking any of these answers will trigger this question. Leave the field empty if the question should always be displayed. | many2many | |
| triggering_question_ids | Triggering Questions Questions containing the triggering answer(s) to display the current question. | many2many | computed |
| user_input_line_ids | Answers | one2many | inverse: |
| validation_email | Input must be an email | boolean | |
| validation_error_msg | Validation Error | char | translatable |
| validation_length_max | Maximum Text Length | integer | |
| validation_length_min | Minimum Text Length | integer | |
| validation_max_date | Maximum Date | date | |
| validation_max_datetime | Maximum Datetime | datetime | |
| validation_max_float_value | Maximum value | float | |
| validation_min_date | Minimum Date | date | |
| validation_min_datetime | Minimum Datetime | datetime | |
| validation_min_float_value | Minimum value | float | |
| validation_required | Validate entry | boolean | computed, stored |
| create_date | Created on | datetime | read-onlyautomatic |
| create_uid | Created by | many2one | read-onlyautomatic |
| display_name | Display Name | char | read-onlycomputedautomatic |
| id | ID | integer | read-onlyautomatic |
| write_date | Last Updated on | datetime | read-onlyautomatic |
| write_uid | Last Updated by | many2one | read-onlyautomatic |
Relations
Models linked from this model
- survey.question: allowed_triggering_question_ids, page_id, question_ids, triggering_question_ids
- survey.question.answer: matrix_row_ids, suggested_answer_ids, triggering_answer_ids
- survey.survey: survey_id
- survey.user_input.line: user_input_line_ids
Fields of other models pointing here
- survey.question: allowed_triggering_question_ids, page_id, triggering_question_ids
- survey.question.answer: matrix_question_id, question_id
- survey.survey: session_question_id
- survey.user_input: last_displayed_page_id, predefined_question_ids
- survey.user_input.line: page_id, question_id
Reading this model through the API
Odoo 19 JSON-2 API call reading the first five records with real fields of the model. Replace the instance, database and API key with your own.
curl -X POST "https://your-instance.odoo.com/json/2/survey.question/search_read" \
-H "Authorization: bearer $ODOO_API_KEY" \
-H "X-Odoo-Database: your-db" \
-H "Content-Type: application/json" \
-d '{"domain":[],"fields":["title","page_id","survey_id","answer_date","answer_datetime"],"limit":5}'import requests
BASE_URL = "https://your-instance.odoo.com/json/2"
headers = {"Authorization": f"bearer {API_KEY}", "X-Odoo-Database": "your-db"}
res = requests.post(
f"{BASE_URL}/survey.question/search_read",
headers=headers,
json={"domain": [], "fields": ["title","page_id","survey_id","answer_date","answer_datetime"], "limit": 5},
)
res.raise_for_status()
print(res.json())- External API access requires Odoo's Custom plan.
- XML-RPC and JSON-RPC will be removed in Odoo 22 (fall 2028): use JSON-2.
- The access rights and record rules of the key's user apply.
Cite this tool
Writing a tutorial, internal documentation or a forum answer? Copy this link to send your readers to the up-to-date reference.
<a href="https://aidoo.ai/en/outils/explorateur-modeles-odoo/survey-question">survey.question (Odoo 19.0)</a>Sources
Data verified on September 23, 2026 · Odoo 19.0 Community
Have an Odoo project, or want to put your ERP to work with AI? Let's talk
Implementation, custom module development, connecting Claude or ChatGPT to your data: tell us about your context and we will reply within 24 business hours.