# -*- coding: utf-8 -*- from odoo import models, fields, _ TYPES = [ ('free_text', _('Multiple Lines Text Box')), ('textbox', _('Single Line Text Box')), ('numerical_box', _('Numerical Value')), ('date', _('Date')), ('upload_file', _('Attachment')), ('simple_choice', _('Multiple choice: only one answer')), ('multiple_choice', _('Multiple choice: multiple answers allowed')), ('matrix', _('Matrix')), ] class SurveyQuestion(models.Model): _inherit = 'survey.question' # question_attachment = fields.Binary(string="Joined attachment") type = fields.Selection(selection=TYPES)