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.
18 lines
525 B
18 lines
525 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'),
|
|
('dropdown', 'Dropdown'),
|
|
('checkbox', 'Checkbox'),
|
|
]
|
|
|
|
|
|
class SurveyLabel(models.Model):
|
|
_inherit = 'survey.label'
|
|
|
|
type = fields.Selection(selection=TYPES, string="Type of question", default="checkbox")
|
|
value_ids = fields.Many2many(comodel_name='survey.label.value', string="Values")
|