add survey_score_ranges: displays different messages depending on the score obtained, allowing different score ranges

This commit is contained in:
Luis 2025-09-22 12:47:58 +02:00
parent 9cabf044c8
commit 4d1eaebc06
11 changed files with 269 additions and 1 deletions

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Inherit finished template to inject range result -->
<template id="survey_fill_form_done_inherit_score_ranges" inherit_id="survey.survey_fill_form_done">
<xpath expr="//div[@class='o_survey_finished mt32 mb32']/div[@class='row']/div[@class='col']" position="inside">
<t t-if="survey.enable_score_ranges and answer.result_range_html">
<div class="o_survey_score_range_result mt-3">
<t t-raw="answer.result_range_html"/>
</div>
</t>
</xpath>
</template>
</odoo>