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.

16 lines
494 B

  1. from odoo import models, fields, _
  2. TYPES = [
  3. ('free_text', _('Multiple Lines Text Box')),
  4. ('textbox', _('Single Line Text Box')),
  5. ('numerical_box', _('Numerical Value')),
  6. ('dropdown', _('Dropdown')),
  7. ('checkbox', _('Checkbox')),
  8. ]
  9. class SurveyLabel(models.Model):
  10. _inherit = 'survey.label'
  11. type = fields.Selection(selection=TYPES, string='Type of Question', default="checkbox")
  12. dpvalues = fields.Many2many(comodel_name='survey.label.value', string="values")