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.
 
 

24 lines
492 B

from odoo import models, fields, api
SELECT_OPTIONS = [
("normal", "Undefined"),
("done", "Selected"),
("blocked", "Not selected"),
]
class SurveyUserInput(models.Model):
_inherit = "survey.user_input"
answer_selection = fields.Boolean(
related="survey_id.answer_selection",
store=True,
)
select = fields.Selection(
SELECT_OPTIONS,
string="Selection",
copy=False,
default="normal",
required=True,
)