From cbab93f40c72c6e061a53330dcb2cc4003c8302c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Hennecart?= Date: Tue, 17 Dec 2019 12:19:43 +0000 Subject: [PATCH] [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) --- addons/website_slides/models/slide_slide.py | 8 ++++---- 1 file 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'),