addons-cm/survey_score_ranges/models/survey_survey.py

13 lines
362 B
Python

# -*- coding: utf-8 -*-
from odoo import models, fields
class SurveySurvey(models.Model):
_inherit = "survey.survey"
enable_score_ranges = fields.Boolean(
"Enable Score Ranges", help="Show a result page based on score ranges."
)
score_range_ids = fields.One2many(
"survey.score.range", "survey_id", string="Score Ranges"
)