Repository
OCA/survey · module folder · Try on Runboat
Module version
1.0.0
Category
Uncategorized
Folder size
0.07 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/survey
Last tracking update
2026-08-07 08:23:14
Authors
Odoo Community Association (OCA), Aures TIC
Maintainers
Odoo Community Association (OCA), Aures TIC
Committers
Mikel Martin, OCA-git-bot, oca-ci, Mikel Martin (from h4)
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
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 form 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 form 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
HTTP endpoints (0)

No HTTP endpoints found for this module.

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.

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
checks failing
Open since
37 days ago
Last activity
37 days ago
Repository
OCA/survey
Pull request
[18.0][MIG] survey_question_type_binary: Migration to 18.0 (#235)
Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
64 days ago
Last activity
9 days ago
Repository
OCA/survey
Pull request
18.0 mig survey question type binary (#232)
Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
162 days ago
Last activity
55 days ago
Repository
OCA/survey
Pull request
[19.0][MIG] survey_question_type_binary (#216)