add survey_score_ranges: displays different messages depending on the score obtained, allowing different score ranges
This commit is contained in:
parent
9cabf044c8
commit
4d1eaebc06
11 changed files with 269 additions and 1 deletions
13
survey_score_ranges/models/survey_survey.py
Normal file
13
survey_score_ranges/models/survey_survey.py
Normal 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"
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue