Skip to content
Snippets Groups Projects
Commit 6d4a7ae5 authored by Thomas Lefebvre (thle)'s avatar Thomas Lefebvre (thle)
Browse files

[FIX] website_slides: join & submit button when user already joined

Reference PR: https://github.com/odoo/odoo/pull/99481



Steps to reproduce:
   - create a course with two successive video with quizz;
   - try the course without clicking on the "join course" of the website;
   - on the first video quizz you can "join and submit".

Issue:
On the second video quizz you again have the "join and submit"
button and if you try to click on it you have an error message:
"You have already joined this channel".

Solution:
There is no "join and submit" button on the second video but
rather a button "check you answers".
The first time the join & submit button is clicked the user join
the course in the backend thanks to the rpc call but the frontend
and the other slides don't have this information. To solve the
issue we add on every slides the information so that when they are
changed to they don't act like if the user had not joined the course.

opw-2971158

closes odoo/odoo#104265

Signed-off-by: default avatarWarnon Aurélien (awa) <awa@odoo.com>
parent a9708d6c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment