-
- Downloads
[IMP] website_slides_survey: handle certification re-enroll/purchase flow
Task #1945036 Purpose ======= If the user fails his last attempt at a course certification, we remove him from the members of the course (and he has to enroll again). He receives an email in the process notifying him of his failure and suggesting he enrolls to the course again. The purpose is to have a 'certification flow' where the user can re-purchase the certification when they have failed it. This could lead to some issues if the course containing the certification also has other slides with content because the user will not have access to them after failing. This also prevents configuring courses with multiple certifications since the membership will be removed at the first failure. These use cases are considered "non standard" by the business and are thus not handled in the code. We assume that users will configure their courses "correctly".
Showing
- addons/website_slides/models/slide_channel.py 27 additions, 0 deletionsaddons/website_slides/models/slide_channel.py
- addons/website_slides_survey/__manifest__.py 1 addition, 0 deletionsaddons/website_slides_survey/__manifest__.py
- addons/website_slides_survey/controllers/survey.py 1 addition, 1 deletionaddons/website_slides_survey/controllers/survey.py
- addons/website_slides_survey/data/mail_template_data.xml 29 additions, 0 deletionsaddons/website_slides_survey/data/mail_template_data.xml
- addons/website_slides_survey/models/slide_slide.py 5 additions, 1 deletionaddons/website_slides_survey/models/slide_slide.py
- addons/website_slides_survey/models/survey_user.py 53 additions, 1 deletionaddons/website_slides_survey/models/survey_user.py
- addons/website_slides_survey/tests/__init__.py 4 additions, 0 deletionsaddons/website_slides_survey/tests/__init__.py
- addons/website_slides_survey/tests/test_course_certification_failure.py 122 additions, 0 deletions..._slides_survey/tests/test_course_certification_failure.py
- addons/website_slides_survey/views/survey_templates.xml 2 additions, 2 deletionsaddons/website_slides_survey/views/survey_templates.xml
Loading
Please register or sign in to comment