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.
60 lines
3.9 KiB
60 lines
3.9 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
<template id="report_patient_label">
|
|
<t t-call="report.html_container">
|
|
<t t-foreach="docs" t-as="o">
|
|
<div class="page">
|
|
<div class="oe_structure"/>
|
|
<div class="row">
|
|
<div class="col-xs-2" style="margin:auto;">
|
|
</div>
|
|
<center>
|
|
<div class="col-xs-8" style="margin:auto">
|
|
<table class="table table-condensed" style="border: 3px solid black !important;">
|
|
<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" height="120" border="1" width="120"/>
|
|
</p>
|
|
<p style="text-align:center;">
|
|
<strong><span t-field="o.patient.name"/></strong>
|
|
</p>
|
|
</td>
|
|
<td width="60%">
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
<p style="text-align:right;padding-top:30px;"><strong>Patient ID : </strong></p>
|
|
<p style="text-align:right;"><strong>Sex : </strong></p>
|
|
<p style="text-align:right;"><strong>Age : </strong></p>
|
|
</td>
|
|
<td>
|
|
<p style="text-align:left;padding-top:30px;padding-left:10px;" t-field="o.name"/>
|
|
<t t-if="o.gender=='m'">
|
|
<p style="text-align:left;padding-left:10px;">Male</p>
|
|
</t>
|
|
<t t-if="o.gender=='ot'">
|
|
<p style="text-align:left;padding-left:10px;">Other</p>
|
|
</t>
|
|
<t t-if="o.gender=='f'">
|
|
<p style="text-align:left;padding-left:10px;">Female</p>
|
|
</t>
|
|
<p style="text-align:left;padding-left:10px;" t-field="o.age"/>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</center>
|
|
</div>
|
|
</div>
|
|
<p style="page-break-after:always"></p>
|
|
</t>
|
|
</t>
|
|
</template>
|
|
</data>
|
|
</odoo>
|