survey_disc_test/report/survey_disc_report.xml
2026-04-20 16:44:36 +07:00

90 lines
5.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="action_report_disc_result" model="ir.actions.report">
<field name="name">DISC Assessment Result</field>
<field name="model">survey.user_input</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">survey_disc_test.report_disc_result</field>
<field name="report_file">survey_disc_test.report_disc_result</field>
<field name="print_report_name">'DISC_Result_%s' % (object.partner_id.name or 'User')</field>
<field name="binding_model_id" ref="model_survey_user_input"/>
<field name="binding_type">report</field>
</record>
<template id="report_disc_result">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
<t t-call="web.external_layout">
<div class="page">
<div class="text-center">
<h2>DISC Personality Assessment Report</h2>
<hr/>
</div>
<div class="row mt32">
<div class="col-6">
<strong>Participant:</strong> <span t-field="o.partner_id.name"/><br/>
<strong>Email:</strong> <span t-field="o.email"/><br/>
<strong>Date:</strong> <span t-field="o.create_date" t-options='{"widget": "date"}'/>
</div>
<div class="col-6 text-right">
<h3>Profile: <span t-field="o.disc_profile" class="text-primary"/></h3>
</div>
</div>
<div class="row mt32 text-center">
<div class="col-4">
<table class="table table-sm border">
<thead class="bg-primary text-white">
<tr><th colspan="2">GRAPH 1: MOST (MASK)</th></tr>
</thead>
<tbody>
<tr><td>D</td><td t-field="o.p_d"/></tr>
<tr><td>I</td><td t-field="o.p_i"/></tr>
<tr><td>S</td><td t-field="o.p_s"/></tr>
<tr><td>C</td><td t-field="o.p_c"/></tr>
<tr><td>*</td><td t-field="o.p_star"/></tr>
</tbody>
</table>
</div>
<div class="col-4">
<table class="table table-sm border">
<thead class="bg-primary text-white">
<tr><th colspan="2">GRAPH 2: LEAST (CORE)</th></tr>
</thead>
<tbody>
<tr><td>D</td><td t-field="o.k_d"/></tr>
<tr><td>I</td><td t-field="o.k_i"/></tr>
<tr><td>S</td><td t-field="o.k_s"/></tr>
<tr><td>C</td><td t-field="o.k_c"/></tr>
<tr><td>*</td><td t-field="o.k_star"/></tr>
</tbody>
</table>
</div>
<div class="col-4">
<table class="table table-sm border">
<thead class="bg-primary text-white">
<tr><th colspan="2">GRAPH 3: CHANGE (MIRROR)</th></tr>
</thead>
<tbody>
<tr><td>D</td><td t-field="o.c_d"/></tr>
<tr><td>I</td><td t-field="o.c_i"/></tr>
<tr><td>S</td><td t-field="o.c_s"/></tr>
<tr><td>C</td><td t-field="o.c_c"/></tr>
</tbody>
</table>
</div>
</div>
<div class="mt32 p-3 bg-light border">
<h4>Behavioral Interpretation</h4>
<p>Based on the scores above, the participant exhibits a <strong><span t-field="o.disc_profile"/></strong> personality profile.</p>
<p>This report provides an automated scoring based on the 24-question DISC assessment. For a deeper analysis, please consult with a behavioral specialist.</p>
</div>
</div>
</t>
</t>
</t>
</template>
</odoo>