Slink/sos_inventory/report/sos_ccrf_report.xml

161 lines
4.6 KiB
XML
Executable File

<odoo>
<record id="action_report_ccrf" model="ir.actions.report">
<field name="name">CCRF Form</field>
<field name="model">sos_ccrf</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">sos_inventory.report_ccrf</field>
<field name="report_file">sos_inventory.report_ccrf</field>
<field name="binding_model_id" eval="False"/>
<field name="binding_type">report</field>
</record>
<template id="report_ccrf">
<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">Customer Complaint Register</h2>
<br></br>
<!-- HTML Table -->
<table class="table table-bordered">
<tbody>
<tr>
<td class="column">CCRF No</td><td><t t-esc="o.ccrf_no"/></td>
</tr>
<tr>
<td class="column">Complaint Received On</td><td><t t-esc="o.complaint_received_on"/></td>
</tr>
<tr>
<td class="column">Complaint Received Mode</td><td><t t-esc="o.complaint_received_mode"/></td>
</tr>
</tbody>
</table>
<br></br>
<table class="table table-bordered">
<tbody>
<tr style="background-color:#ccc">
<td colspan="4"><h5>Customer Details</h5></td>
</tr>
<tr>
<td class="column">Name</td><td><t t-esc="o.customer_name.customer_name"/></td>
<td class="column">Address</td><td><t t-esc="o.customer_address"/></td>
</tr>
<tr>
<td class="column">Contact No</td><td><t t-esc="o.customer_phone_number"/></td>
<td class="column">Email Id</td><td><t t-esc="o.customer_email"/></td>
</tr>
</tbody>
</table>
<table class="table table-bordered">
<tbody>
<tr style="background-color:#ccc">
<td colspan="4"><h5>Product Details</h5></td>
</tr>
<tr>
<td class="column">Product Type</td><td><t t-esc="o.fg_name"/></td>
<td class="column">Product Name</td><td><t t-esc="o.sub_fg_name.name"/></td>
</tr>
<tr>
<td class="column">Batch No</td><td colspan="3"><t t-esc="o.batch_no"/></td>
</tr>
</tbody>
</table>
<table class="table table-bordered">
<tbody>
<tr style="background-color:#ccc">
<td colspan="6"><h5>Data Collection</h5></td>
</tr>
<tr>
<td class="column">Invoice No</td><td><t t-esc="o.invoice_no"/></td>
<td class="column">Invoice Date</td><td><t t-esc="o.batch_release_date"/></td>
<td class="column">Quantity Dispatched</td><td><t t-esc="o.quantity_dispatched"/></td>
</tr>
<tr>
<td class="column">BRCOA No</td><td><t t-esc="o.brcoa_no"/></td>
<td class="column">BRCOA Date</td><td><t t-esc="o.brcoa_date"/></td>
<td class="column">Details of any other Complaints received from this Production Run</td><td><t t-esc="o.other_complaints"/></td>
</tr>
</tbody>
</table>
<table class="table table-bordered">
<tbody>
<tr style="background-color:#ccc">
<td colspan="6"><h5>Investigation Details</h5></td>
</tr>
<tr>
<td class="column">Device Failed To Meet Specification</td><td><t t-esc="o.device_failed_to_meet_specification"/></td>
<td class="column">Labelling Error</td><td><t t-esc="o.labelling_error"/></td>
</tr>
<tr>
<td class="column">Error in Instruction For Use(IFU)</td><td><t t-esc="o.ifu"/></td>
<td class="column">Raw Materials / Components</td><td><t t-esc="o.raw_materials"/></td>
</tr>
<tr>
<td class="column">Packaging Error</td><td><t t-esc="o.packaging_details"/></td>
<td class="column">Processing</td><td><t t-esc="o.processing"/></td>
</tr>
<tr>
<td class="column">Interim Containment Action</td><td colspan="3"><t t-esc="o.interin_containment_actions"/></td>
</tr>
</tbody>
</table>
<table class="table table-bordered">
<tbody>
<tr style="background-color:#ccc">
<td colspan="6"><h5>Root Cause</h5></td>
</tr>
<tr>
<td><t t-esc="o.root_cause"/></td>
</tr>
</tbody>
</table>
<table class="table table-bordered">
<tbody>
<tr style="background-color:#ccc">
<td colspan="6"><h5>CAPA</h5></td>
</tr>
<tr>
<td class="column">Corrective Action</td><td><t t-esc="o.corrective_action"/></td>
</tr>
<tr>
<td class="column">Preventive Action</td><td><t t-esc="o.preventive_action"/></td>
</tr>
<tr>
<td class="column">Status</td><td><t t-esc="o.capa_status"/></td>
</tr>
</tbody>
</table>
</div>
</t>
</t>
</t>
</template>
</odoo>