question_report.xml
1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<template id="exam_question_repot">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="exam">
<t t-call="web.external_layout">
<div class="page">
<h2>
<span t-field="exam.name"/>
</h2>
<t t-set="foo" t-value="0"/>
<t t-foreach="exam.questions" t-as="question">
<h4>
<t t-esc="question_index+1"/>)
<t t-raw="question.question.replace('<p>','').replace('</p>','')"/>
</h4>
<t t-foreach="question.question_options" t-as="answers">
<t t-if="answers.correct==True">
<b>
<span t-field="answers.option"/>
</b>
</t>
<t t-if="answers.correct==False">
<span t-field="answers.option"/>
</t>
<br/>
</t>
<br/>
</t>
</div>
</t>
</t>
</t>
</template>
</data>
</odoo>