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
20 lines
624 B
# -*- 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)
|