# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import fields, models class SurveyQuestion(models.Model): _inherit = "survey.question" question_type = fields.Selection( selection_add=[("file", "File")] ) max_file_size = fields.Integer( string="Max File Size (MB)", default=10, help="Maximum file size in MB. Leave 0 for no limit.", ) allowed_extensions = fields.Char( string="Allowed Extensions", help="Comma-separated list of allowed extensions (e.g. .pdf,.docx). Leave empty to allow all types.", )