Survey answer generation

survey_answer_generation
REPOSITORY
REPOSITORYOCA/survey
GIT
GIThttps://github.com/OCA/survey.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/survey/tree/17.0/survey_answer_generation
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYMarketing/Survey
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, pilarvargas-tecnativa
WEBSITE
WEBSITEhttps://github.com/OCA/survey
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:11
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - survey
    - auth_signup
    - base_setup
    - base
    - web
    - mail
    - bus
    - web_tour
    - http_routing
    - gamification
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module allows to prefill answers from one survey to another.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
survey_form survey.survey group Inherits survey.survey_survey_view_form
survey_question_form survey.question xpath Inherits survey.survey_question_form
survey_user_input_view_form survey.user_input field Inherits survey.survey_user_input_view_form
Models touched (5)

New fields (2)
  • next_survey_id Many2one
    related='survey_id.next_survey_id'
  • next_survey_question_id Many2one → survey.question
    comodel_name='survey.question' domain="[('survey_id', '=', next_survey_id), ('question_type', '=', question_type)]" help='Prefill this answer of the next survey with the answer of this one'
Public methods (0)

No public methods.

New fields (2)
  • next_survey_question_answer_id Many2one → survey.question.answer
    comodel_name='survey.question.answer' domain="[('question_id', '=', next_survey_question_id)]" help='Prefill this answer of the next survey with the answer of this one'
  • next_survey_question_id Many2one
    related='question_id.next_survey_question_id'
Public methods (0)

No public methods.

New fields (1)
  • next_survey_id Many2one → survey.survey
    comodel_name='survey.survey' domain="[('id', '!=', id)]"
Public methods (0)

No public methods.

New fields (3)
  • diff_user_input_line_count Integer
    compute='_compute_diff_user_input_line_count'
  • next_survey_input_id Many2one → survey.user_input
    comodel_name='survey.user_input' readonly=True
  • origin_input_id Many2one → survey.user_input
    comodel_name='survey.user_input' readonly=True
Public methods (0)

No public methods.

New fields (2)
  • diff_with_origin Html
    compute='_compute_diff_with_origin' store=True
  • origin_input_line Many2one → survey.user_input.line
    comodel_name='survey.user_input.line'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/survey
GIT
GIThttps://github.com/OCA/survey.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/survey/tree/15.0/survey_answer_generation
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYMarketing/Survey
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, pilarvargas-tecnativa
WEBSITE
WEBSITEhttps://github.com/OCA/survey
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:43
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 (3)
XML IDNameModelTypeStatus
survey_form survey.survey group Inherits survey.survey_form
survey_question_form survey.question xpath Inherits survey.survey_question_form
survey_user_input_view_form survey.user_input field Inherits survey.survey_user_input_view_form
Models touched (5)

New fields (2)
  • next_survey_id Many2one
    related='survey_id.next_survey_id'
  • next_survey_question_id Many2one → survey.question
    comodel_name='survey.question' domain="[('survey_id', '=', next_survey_id), ('question_type', '=', question_type)]" help='Prefill this answer of the next survey with the answer of this one'
Public methods (0)

No public methods.

New fields (2)
  • next_survey_question_answer_id Many2one → survey.question.answer
    comodel_name='survey.question.answer' domain="[('question_id', '=', next_survey_question_id)]" help='Prefill this answer of the next survey with the answer of this one'
  • next_survey_question_id Many2one
    related='question_id.next_survey_question_id'
Public methods (0)

No public methods.

New fields (1)
  • next_survey_id Many2one → survey.survey
    comodel_name='survey.survey' domain="[('id', '!=', id)]"
Public methods (0)

No public methods.

New fields (3)
  • diff_user_input_line_count Integer
    compute='_compute_diff_user_input_line_count'
  • next_survey_input_id Many2one → survey.user_input
    comodel_name='survey.user_input' readonly=True
  • origin_input_id Many2one → survey.user_input
    comodel_name='survey.user_input' readonly=True
Public methods (1)
  • save_lines(self, question, answer, comment=None)
    Sync the answers for the next question when they're saved so we don't have to repeat the logic again

New fields (2)
  • diff_with_origin Html
    compute='_compute_diff_with_origin' store=True
  • origin_input_line Many2one → survey.user_input.line
    comodel_name='survey.user_input.line'
Public methods (0)

No public methods.

STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/survey
PULL REQUEST
PULL REQUEST18.0 mig survey answer generation (#224)