[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>
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user