You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
4.6 KiB
72 lines
4.6 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- Report template of patient card-->
|
|
<data>
|
|
<template id="lab_patient_report">
|
|
<t t-call="web.html_container">
|
|
<t t-foreach="docs" t-as="o" t-key="o_index">
|
|
<div class="page">
|
|
<div class="oe_structure"/>
|
|
<div class="row">
|
|
<center>
|
|
<br/>
|
|
<div class="col-xs-8" style="margin:auto">
|
|
<table class="table table-condensed" style="border: 3px solid black !important; width: 40%; position: relative;">
|
|
<tr>
|
|
<td width="40%">
|
|
<p style="text-align:center;padding-top:10px;">
|
|
<img t-if="not o.patient_image" t-att-src="'/web/static/src/img/placeholder.png'" height="120" border="1" width="120"/>
|
|
<img t-if="o.patient_image" t-att-src="'data:image/png;base64,%s' %o.patient_image.decode('utf-8')" height="120" border="1" width="120"/>
|
|
</p>
|
|
<p style="text-align:center;">
|
|
<strong><span t-field="o.patient_id"/></strong>
|
|
</p>
|
|
</td>
|
|
<td width="40%">
|
|
<table border="0" style="text-align:center; position: absolute; top: 20px; left: 180px;">
|
|
<tr>
|
|
<td>
|
|
<p style="text-align:left;"><strong>Patient ID:</strong></p>
|
|
</td>
|
|
<td>
|
|
<p style="text-align:left;" t-field="o.name"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p style="text-align:left;"><strong>Sex:</strong></p>
|
|
</td>
|
|
<td>
|
|
<t t-if="o.gender=='m'">
|
|
<p style="text-align:left;">Male</p>
|
|
</t>
|
|
<t t-if="o.gender=='ot'">
|
|
<p style="text-align:left;">Other</p>
|
|
</t>
|
|
<t t-if="o.gender=='f'">
|
|
<p style="text-align:left;">Female</p>
|
|
</t>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p style="text-align:left;"><strong>Age:</strong></p>
|
|
</td>
|
|
<td>
|
|
<p style="text-align:left;" t-field="o.age"/>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</center>
|
|
</div>
|
|
</div>
|
|
<p t-if="o_index + 1 != len(docs)" style="page-break-after:always"/>
|
|
</t>
|
|
</t>
|
|
</template>
|
|
</data>
|
|
</odoo>
|
|
|