Wednesday, February 10, 2021
1 change · master
Enhancements to existing features
Surveys no longer use draft/open/closed states and instead rely on archiving to close or reopen them, reducing steps for teams managing questionnaires. Users can now assign a responsible person to each survey, improving ownership and day-to-day follow-up.
Original PR description
PURPOSE Improve daily management of surveys by adding a responsible and removing states to use an archive-based flow instead. SPECIFICATIONS The goal of the draft state on survey is to have the…
PURPOSE Improve daily management of surveys by adding a responsible and removing states to use an archive-based flow instead. SPECIFICATIONS The goal of the draft state on survey is to have the survey under edition mode before before sending it to participants. Under this mode: - the responsible can test it (can be done with "In Progress" mode) - the survey can't be answered (same as the state closed) The risk that the survey can be leaked before being ready is really limited. If it's a live survey, participants will have to guess the 4 digits access code and wait for the host to go to the next question. Else, participant will have to guess the token. Considering these facts, the use of the draft state is very limited so 'draft' state can be dropped. If we do so, we are left with only two stages that are 'open' and 'closed'. But whether to consider survey open or closed can be simply achieved with active field we already have (if active=False, survey is closed, otherwise it's considered as open). So with this commit, we remove the state field from survey and thus simplify the flow. It means that we no longer require 'Start Survey' button, and so that button is also removed, and for the closed surveys, instead of the button 'Set to draft', now we have a 'Reopen' button which will activate the survey. And instead of displaying few buttons after saving a record, we now display all the buttons from beginning. This commit also enable users to set a 'Responsible' for the survey by adding 'user_id' field. Demo data for the same is also updated. LINKS Task ID-2389434 COM PR odoo/odoo#62712 ENT PR odoo/enterprise#15217 UPG PR odoo/upgrade#2006