[FIX] website_slides_survey: fix survey access without elearning rights
Steps to reproduce: - We need to have eLearning and Survey installed. - Then we go to Demo or any other users and we remove the access to eLearning and we give it administrator rights to Surveys. - We connect with Demo and we go to the survey app. Issue: We are getting a traceback when trying to access Survey app, because we load the inherited view that calls for the `slide_channel_count` field which is restricted for elearning officers only. Solution: Added proper access rights groups to the inherited views so we won't try to access it without the proper rights. opw-3059128 closes odoo/odoo#109620 X-original-commit: ee0290b90d109fd26724548d7f68c7ff2f6531e9 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com> Signed-off-by: Maruan Aguerdouh Mohtar (magm) <magm@odoo.com>
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
<field name="slide_channel_count"/>
|
||||
</xpath>
|
||||
<xpath expr="//div[@name='o_survey_kanban_card_section_success']" position="after">
|
||||
<div class="col-lg-1 col-sm-4 col-6 py-0 my-2">
|
||||
<div class="col-lg-1 col-sm-4 col-6 py-0 my-2" groups="website_slides.group_website_slides_officer">
|
||||
<a t-if="record.slide_channel_count.raw_value"
|
||||
type="object"
|
||||
name="action_survey_view_slide_channels"
|
||||
|
||||
Reference in New Issue
Block a user