summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémy Hennecart <jeh@odoo.com>2019-12-17 12:19:43 +0000
committerJérémy Hennecart <jeh@odoo.com>2019-12-18 11:54:40 +0000
commitcbab93f40c72c6e061a53330dcb2cc4003c8302c (patch)
tree5f036236616c10241ffd88f005f80b8f840f5987
parent5015e718fb2d677976d8cd4e916fe264b5a5984d (diff)
[IMP] website_slides: rename string for quiz attempts
When exporting fields, the reward attempts fields were split from each other. By grouping them, it allows easier management from user as all rewards fields are now grouped in the export wizard. Additionaly, they are also grouped in the dropdown for custom filter. task-2155189 closes odoo/odoo#42103 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
-rw-r--r--addons/website_slides/models/slide_slide.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/website_slides/models/slide_slide.py b/addons/website_slides/models/slide_slide.py
index e60b795bb6a..88f3c2405fb 100644
--- a/addons/website_slides/models/slide_slide.py
+++ b/addons/website_slides/models/slide_slide.py
@@ -140,10 +140,10 @@ class Slide(models.Model):
# Quiz related fields
question_ids = fields.One2many("slide.question", "slide_id", string="Questions")
questions_count = fields.Integer(string="Numbers of Questions", compute='_compute_questions_count')
- quiz_first_attempt_reward = fields.Integer("First attempt reward", default=10)
- quiz_second_attempt_reward = fields.Integer("Second attempt reward", default=7)
- quiz_third_attempt_reward = fields.Integer("Third attempt reward", default=5,)
- quiz_fourth_attempt_reward = fields.Integer("Reward for every attempt after the third try", default=2)
+ quiz_first_attempt_reward = fields.Integer("Reward: first attempt", default=10)
+ quiz_second_attempt_reward = fields.Integer("Reward: second attempt", default=7)
+ quiz_third_attempt_reward = fields.Integer("Reward: third attempt", default=5,)
+ quiz_fourth_attempt_reward = fields.Integer("Reward: every attempt after the third try", default=2)
# content
slide_type = fields.Selection([
('infographic', 'Infographic'),