add survey_score_ranges: displays different messages depending on the score obtained, allowing different score ranges

This commit is contained in:
Luis 2025-09-22 12:47:58 +02:00
parent 9cabf044c8
commit 4d1eaebc06
11 changed files with 269 additions and 1 deletions

View file

@ -0,0 +1,13 @@
# -*- 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"
)