Survey binary question type

survey_question_type_binary
REPOSITORY
REPOSITORYOCA/survey
GIT
GIThttps://github.com/OCA/survey.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/survey/tree/17.0/survey_question_type_binary
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Aures TIC
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Aures TIC
COMMITTERS
COMMITTERSMikel Martin, OCA-git-bot, oca-ci, Mikel Martin (from h4)
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 add binary field question type for attach on survey page.

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
question_binary Question: Binary ir.ui.view qweb New
question_conainer_inh_type_binary question_conainer_inh_type_binary ir.ui.view qweb Inherits survey.question_container
survey_page_print survey_page_print ir.ui.view qweb Inherits survey.survey_page_print
survey_question_form_inherit_question_type_binary survey.question.view.form.inherit survey.question xpath Inherits survey.survey_question_form
survey_user_input_line_view_form_inherit_question_type_binary survey.user_input.line.view.form.inherit survey.user_input.line xpath Inherits survey.survey_user_input_line_view_form
view_survey_user_input_line_binary_form survey.user.input.line.binary.form survey.user_input.line_binary form New
Models touched (4)

New fields (3)
  • allowed_filemimetypes Char
    help='File mime types separated by commas (E.g: image/png,image/jpeg). Leave empty to allow any value.'
  • max_filesize Integer
    default='52428800' help='Indicate maximum file size in bytes (Default 50MB). Leave empty to allow any value.'
  • question_type Selection
    selection_add=[('binary', 'Binary'), ('multi_binary', 'Multiple: Binary')]
Public methods (2)
  • validate_binary(self, answers)
  • validate_question(self, answer, comment=None)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • answer_binary_ids One2many → survey.user_input.line_binary
    comodel_name='survey.user_input.line_binary' inverse_name='input_line_id' readonly=True
  • answer_type Selection
    selection_add=[('binary', 'Binary'), ('multi_binary', 'Multi: Binary')]
Public methods (0)

No public methods.

New fields (6)
  • filename Char
    readonly=True required=True
  • input_line_id Many2one → survey.user_input.line
    comodel_name='survey.user_input.line' ondelete='cascade' readonly=True required=True
  • is_binary_image Boolean
    compute='_compute_binary_data' readonly=True store=True
  • value_binary Binary
    readonly=True required=True
  • value_binary_size Integer
    compute='_compute_binary_data' readonly=True store=True
  • value_binary_type Char
    compute='_compute_binary_data' readonly=True store=True
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/16.0/survey_question_type_binary
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Aures TIC
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Aures TIC
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Julien Guenat
WEBSITE
WEBSITEhttps://github.com/OCA/survey
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:54:00
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 (5)
XML IDNameModelTypeStatus
question_binary Question: Binary ir.ui.view qweb New
question_conainer_inh_type_binary question_conainer_inh_type_binary ir.ui.view qweb Inherits survey.question_container
survey_page_print survey_page_print ir.ui.view qweb Inherits survey.survey_page_print
survey_question_form_inherit_question_type_binary survey.question.view.form.inherit survey.question xpath Inherits survey.survey_question_form
survey_user_input_line_view_form_inherit_question_type_binary survey.user_input.line.view.form.inherit survey.user_input.line xpath Inherits survey.survey_user_input_line_view_form
Models touched (4)

New fields (3)
  • allowed_filemimetypes Char
    help='File mime types separated by commas (E.g: image/png,image/jpeg). Leave empty to allow any value.'
  • max_filesize Integer
    default='52428800' help='Indicate maximum file size in bytes (Default 50MB). Leave empty to allow any value.'
  • question_type Selection
    selection_add=[('binary', 'Binary'), ('multi_binary', 'Multiple: Binary')]
Public methods (2)
  • validate_binary(self, answers)
  • validate_question(self, answer, comment=None)

New fields (0)

No new fields.

Public methods (1)
  • save_lines(self, question, answer, comment=None)

New fields (2)
  • answer_binary_ids One2many → survey.user_input.line_binary
    comodel_name='survey.user_input.line_binary' inverse_name='input_line_id' readonly=True
  • answer_type Selection
    selection_add=[('binary', 'Binary'), ('multi_binary', 'Multi: Binary')]
Public methods (0)

No public methods.

New fields (6)
  • filename Char
    readonly=True required=True
  • input_line_id Many2one → survey.user_input.line
    comodel_name='survey.user_input.line' ondelete='cascade' readonly=True required=True
  • is_binary_image Boolean
    compute='_compute_binary_data' readonly=True store=True
  • value_binary Binary
    readonly=True required=True
  • value_binary_size Integer
    compute='_compute_binary_data' readonly=True store=True
  • value_binary_type Char
    compute='_compute_binary_data' readonly=True store=True
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_question_type_binary
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Aures TIC
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Aures TIC
COMMITTERS
COMMITTERSAlexandre D. Díaz, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/survey
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:44
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 (6)
XML IDNameModelTypeStatus
question_binary Question: Binary ir.ui.view qweb New
question_conainer_inh_type_binary question_conainer_inh_type_binary ir.ui.view qweb Inherits survey.question_container
survey_page_print survey_page_print ir.ui.view qweb Inherits survey.survey_page_print
survey_question_form_inherit_question_type_binary survey.question.view.form.inherit survey.question xpath Inherits survey.survey_question_form
survey_user_input_line_binary_view_form survey.user_input.line_binary.form survey.user_input.line_binary form New
survey_user_input_line_view_form_inherit_question_type_binary survey.user_input.line.view.form.inherit survey.user_input.line xpath Inherits survey.survey_user_input_line_view_form
Models touched (4)

New fields (3)
  • allowed_filemimetypes Char
    help='File mime types separated by commas (E.g: image/png,image/jpeg). Leave empty to allow any value.'
  • max_filesize Integer
    default='52428800' help='Indicate maximum file size in bytes (Default 50MB). Leave empty to allow any value.'
  • question_type Selection
    selection_add=[('binary', 'Binary'), ('multi_binary', 'Multiple: Binary')]
Public methods (2)
  • validate_binary(self, answers)
  • validate_question(self, answer, comment=None)

New fields (0)

No new fields.

Public methods (1)
  • save_lines(self, question, answer, comment=None)

New fields (2)
  • answer_binary_ids One2many → survey.user_input.line_binary
    comodel_name='survey.user_input.line_binary' inverse_name='input_line_id'
  • answer_type Selection
    selection_add=[('binary', 'Binary'), ('multi_binary', 'Multi: Binary')]
Public methods (0)

No public methods.

New fields (6)
  • filename Char
    readonly=True required=True
  • input_line_id Many2one → survey.user_input.line
    comodel_name='survey.user_input.line' ondelete='cascade' readonly=True required=True
  • is_binary_image Boolean
    compute='_compute_binary_data' readonly=True store=True
  • value_binary Binary
    required=True
  • value_binary_size Integer
    compute='_compute_binary_data' readonly=True store=True
  • value_binary_type Char
    compute='_compute_binary_data' readonly=True store=True
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/14.0/survey_question_type_binary
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Aures TIC
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Aures TIC
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Jose Zambudio
WEBSITE
WEBSITEhttps://github.com/OCA/survey
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:13
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 (6)
XML IDNameModelTypeStatus
assets_frontend Survey assets ir.ui.view qweb Inherits survey.survey_assets
question_binary Question: Binary ir.ui.view qweb New
question_conainer_inh_type_binary question_conainer_inh_type_binary ir.ui.view qweb Inherits survey.question_container
survey_page_print survey_page_print ir.ui.view qweb Inherits survey.survey_page_print
survey_question_form_inherit_question_type_binary survey.question.view.form.inherit survey.question xpath Inherits survey.survey_question_form
survey_user_input_line_view_form_inherit_question_type_binary survey.user_input.line.view.form.inherit survey.user_input.line xpath Inherits survey.survey_user_input_line_view_form
Models touched (4)

New fields (3)
  • allowed_filemimetypes Char
    help='File mime types separated by commas (E.g: image/png,image/jpeg). Leave empty to allow any value.'
  • max_filesize Integer
    default='52428800' help='Indicate maximum file size in bytes (Default 50MB). Leave empty to allow any value.'
  • question_type Selection
    selection_add=[('binary', 'Binary'), ('multi_binary', 'Multiple: Binary')]
Public methods (2)
  • validate_binary(self, answers)
  • validate_question(self, answer, comment=None)

New fields (0)

No new fields.

Public methods (1)
  • save_lines(self, question, answer, comment=None)

New fields (2)
  • answer_binary_ids One2many → survey.user_input.line_binary
    comodel_name='survey.user_input.line_binary' inverse_name='input_line_id' readonly=True
  • answer_type Selection
    selection_add=[('binary', 'Binary'), ('multi_binary', 'Multi: Binary')]
Public methods (0)

No public methods.

New fields (6)
  • filename Char
    readonly=True required=True
  • input_line_id Many2one → survey.user_input.line
    comodel_name='survey.user_input.line' ondelete='cascade' readonly=True required=True
  • is_binary_image Boolean
    compute='_compute_binary_data' readonly=True store=True
  • value_binary Binary
    readonly=True required=True
  • value_binary_size Integer
    compute='_compute_binary_data' readonly=True store=True
  • value_binary_type Char
    compute='_compute_binary_data' readonly=True store=True
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 question type binary (#232)