Slink/sos_inventory/report/sos_aodr_report.xml

61 lines
2.7 KiB
XML
Executable File

<odoo>
<record id="action_report_aodr" model="ir.actions.report">
<field name="name">AODR Form</field>
<field name="model">sos_aodr</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">sos_inventory.report_aodr</field>
<field name="report_file">sos_inventory.report_aodr</field>
<field name="binding_model_id" eval="False"/>
<field name="binding_type">report</field>
</record>
<template id="report_aodr">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
<t t-call="web.external_layout">
<link rel="stylesheet" href="/sos_inventory/static/src/css/style.css" />
<div class="page">
<h2 style="text-align:center">Accept On-Deviation Record</h2>
<br/>
<!-- HTML Table -->
<table class="table">
<tr><td class="column">AODR NO</td><td><t t-esc="o.aodr_no"/></td><td class="column">AODR Date</td><td><t t-esc="o.aodr_date"/></td></tr>
<tr><td class="column">Source of Deviation</td><td><t t-esc="o.source_of_deviation.name"/></td><td class="column">Product Name</td><td><t t-esc="o.fg_name.name"/></td></tr>
<tr><td class="column">QP No</td><td><t t-esc="o.qp_no"/></td><td class="column">Batch No</td><td><t t-esc="o.batch_no"/></td></tr>
<tr><td class="column">Document Reference No</td><td colspan="3"><t t-esc="o.doc_ref_no"/></td></tr>
</table>
<br/>
<table class="table_custom">
<tr><td class="column">Description Of Cause of the Problem</td><td class="column">Identified By</td><td class="column">Signature</td></tr>
<tr><td><t t-esc="o.problem_cause"/></td>
<td><t t-esc="o.identified_by.name"/></td>
<td><img t-if="o.identified_sign_image" t-att-src="'data:image/png;base64,%s' % (o.identified_sign_image.decode())"/>
</td>
</tr>
</table>
<br></br>
<table class="table_custom">
<tr><td class="column">Comments By the Reviewer</td><td class="column">Reviewed By</td><td class="column">Signature</td></tr>
<tr><td><t t-esc="o.reviewer_comments"/></td>
<td><t t-esc="o.reviewed_by.name"/></td>
<td><img t-if="o.reviewer_sign_image" t-att-src="'data:image/png;base64,%s' % (o.reviewer_sign_image.decode())"/>
</td></tr>
</table>
<br></br>
<br></br>
<table class="table table-bordered">
<tr>
<td style="padding: 8px;" class="column"><b>Authorised Signatory</b></td>
<td> <img t-if="o.approval_image" t-att-src="'data:image/png;base64,%s' % (o.approval_image.decode())" alt="Approved By Sign"/></td>
</tr>
</table>
</div>
</t>
</t>
</t>
</template>
</odoo>