diff options
| author | Patrick Hoste <pko@odoo.com> | 2019-12-02 13:47:53 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-12-24 08:56:12 +0000 |
| commit | e42ee496f89a830c938a20389a9fc645dfbf96c8 (patch) | |
| tree | 57a456e02861f7cab1f645a2ddf905bee5934269 /addons/website_slides/models/slide_question.py | |
| parent | 9b534649d5a223523895f1440a359b3ef9529dff (diff) | |
[IMP] website_slides: add comments on answers showed after answering a quiz
PURPOSE :
A quiz after a course content is a good way to check if the user gets the previous lesson.
Despite, the user/student may not understand why his answer was wrong/correct.
In this task we'll allow the teacher to add a comment next to the asnwer of a quiz.
SPECIFICATION :
The quiz creator will now be able to comment the answers to inform the frontend user why
his answer is wrong/correct. He will be able to add the comments both in backend and frontend.
Task ID : 2072566
PR : #41188
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/website_slides/models/slide_question.py')
| -rw-r--r-- | addons/website_slides/models/slide_question.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/website_slides/models/slide_question.py b/addons/website_slides/models/slide_question.py index a77d28bbcec..f14fce6f059 100644 --- a/addons/website_slides/models/slide_question.py +++ b/addons/website_slides/models/slide_question.py @@ -56,3 +56,4 @@ class SlideAnswer(models.Model): question_id = fields.Many2one('slide.question', string="Question", required=True, ondelete='cascade') text_value = fields.Char("Answer", required=True, translate=True) is_correct = fields.Boolean("Is correct answer") + comment = fields.Text("Comment", translate=True, help='This comment will be displayed to the user if he selects this answer') |
