Skip to content
Health
67/100
fair
  • Security25/25
    No findings
  • Activity12/25
    Last human commit 24 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 4 Odoo series since 14.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.07 MB
Module directory on disk
Code analysis 0 migration notes 4 models 6 views 0 HTTP endpoints

Description

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

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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…

Loading…