Odoo modules related to surveys
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
624 B

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