OdooWiki OCA HUB

Survey model selection question type

survey_question_type_model_selection folder_open OCA/survey open_in_new
Marketing/Survey License: AGPL-3

This module add Model selection field question type for attach on survey page.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Adds a new "Model selection" question type to surveys, letting you ask users to pick a record from any Odoo model (for example a customer, product or project) with a searchable dropdown.

This module extends the Survey app with an extra question type called "Model selection". When you build a survey, you can now choose this type for a question and decide which Odoo model the answer should come from (the "Applies to" field, defaulting to Contacts). You can also enter a filter domain so only certain records are offered as choices.

On the survey page, the question appears as a searchable dropdown where the respondent types to find and select a record. The selection is stored on the answer line as a reference to the chosen record, and the answer is shown on the printed survey page as the record's name.

  • New question type "Model selection" on survey.question
  • New fields on the question: "Applies to" model, related model name, and a filter domain
  • New answer field value_model on survey.user_input.line
  • The answer line form view shows the selected record when the answer type is "Model selection"
  • Survey printing template displays the chosen record's name
  • A read-only access right is added for survey users on the list of models

It touches the survey question, user input and answer line models, and adds a small front-end component for the searchable selector.

Depends on

survey
Models and fields (3)
  • survey.question · extends an existing modelquestion_type, question_domain (Filter Domain), question_model_id (Applies to), question_model_name
  • survey.user_input · extends an existing model
  • survey.user_input.line · extends an existing modelanswer_type, value_model (Selection answer)

Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 2 confirmed, 7 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 19.0

Once installed from the configuration of the questions, in the options, you can select the model to apply and also you can add filters.

Since the "Applies to" field points to ir.model, which is only readable by users with Administration / Access Rights, this module grants read-only access to ir.model to the Survey / User group (implied by Survey / Administrator), so that survey editors can configure this question type without being system administrators.

No verified information in OCA: Installation, Usage.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.