add survey_score_ranges: displays different messages depending on the score obtained, allowing different score ranges
This commit is contained in:
parent
9cabf044c8
commit
4d1eaebc06
11 changed files with 269 additions and 1 deletions
13
survey_score_ranges/views/survey_templates.xml
Normal file
13
survey_score_ranges/views/survey_templates.xml
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue