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.
|
|
from odoo import models, fields, _
TYPES = [ ('free_text', _('Multiple Lines Text Box')), ('textbox', _('Single Line Text Box')), ('numerical_box', _('Numerical Value')), ('dropdown', _('Dropdown')), ('checkbox', _('Checkbox')), ]
class SurveyLabel(models.Model): _inherit = 'survey.label'
type = fields.Selection(selection=TYPES, string='Type of Question', default="checkbox") dpvalues = fields.Many2many(comodel_name='survey.label.value', string="values")
|