-
- Downloads
[REF] survey: refactor invitation wizard
Purpose is to clean and simplify invite wizard on surveys. Main purpose is to simplify options. Public link is displayed for public surveys, allowing to quickly share it. When sending emails a token is now generated for each recipient. There is no "batch public link" sending option anymore as it is not really necessary. Check is done on recipients and emails to match the access mode option. Having a restricted survey gives the same limitations on people to invite (users, employees, ...). Code is cleaned to ease its understanding and prepare future evolution notably with appraisals. An existing mode field is added on invite model. All options are currently not used but it prepares future addition to survey, notably for certifications. Its purpose is to know what to do with existing tokens when inviting new recipients. It is used notably to resend tokens through the user_input form view instead of relying on a custom context key. This commit is linked to task ID 1911586 and PR #28986.
Showing
- addons/survey/__manifest__.py 5 additions, 1 deletionaddons/survey/__manifest__.py
- addons/survey/models/survey_survey.py 0 additions, 3 deletionsaddons/survey/models/survey_survey.py
- addons/survey/models/survey_user.py 15 additions, 11 deletionsaddons/survey/models/survey_user.py
- addons/survey/tests/test_survey_invite.py 161 additions, 0 deletionsaddons/survey/tests/test_survey_invite.py
- addons/survey/views/survey_user_views.xml 3 additions, 2 deletionsaddons/survey/views/survey_user_views.xml
- addons/survey/wizard/survey_invite.py 155 additions, 156 deletionsaddons/survey/wizard/survey_invite.py
- addons/survey/wizard/survey_invite_views.xml 25 additions, 39 deletionsaddons/survey/wizard/survey_invite_views.xml
Loading
Please register or sign in to comment