Daily updates from Odoo
Tuesday, October 22, 2024
1 change · saas-17.2
Resolved issues and error corrections
Users with Survey and Recruitment access could be led to completed recruitment survey answers that were not visible from the Survey app. This fix removes misleading Survey app links and sharing actions for non-standard survey types so users are guided away from paths where answers cannot be accessed.
Original PR description
Issue ----- An user with Survey and Recruitment rights is not able to see completed answers for recruitment type surveys. Steps ----- [hr_recruitment_survey] 1. With admin, create a "Recruitment"…
Issue ----- An user with Survey and Recruitment rights is not able to see completed answers for recruitment type surveys. Steps ----- [hr_recruitment_survey] 1. With admin, create a "Recruitment" type survey, answer it once. 2. Go to Surveys > Click on "1 Completed" > No answers visible. Go to Recruitment > Interviews > Click on "1 Completed" > No answers visible either. Cause ----- Commit 027a2a66d63225abbfaef425448188007f573ac5 overhauled rights management for surveys and the apps depending on Survey. The view showing the answers to a survey restricts the survey types: https://github.com/odoo/odoo/blob/027a2a66d63225abbfaef425448188007f573ac5/addons/survey/views/survey_user_views.xml#L171 A user with Recruitment rights will therefore not see the answers to a Recruitment survey. Change ----- As a security rule exists to not allow Survey users to access Recruitment survey answers: https://github.com/odoo/odoo/blob/027a2a66d63225abbfaef425448188007f573ac5/addons/survey/security/survey_security.xml#L104 We don't restrict the view to make other survey types work. opw-4089308