147 lines
4.7 KiB
XML
Executable File
147 lines
4.7 KiB
XML
Executable File
<odoo>
|
|
<record id="action_report_mrn" model="ir.actions.report">
|
|
<field name="name">MRN Form</field>
|
|
<field name="model">sos_mrn</field>
|
|
<field name="report_type">qweb-pdf</field>
|
|
<field name="report_name">sos_inventory.report_mrn</field>
|
|
<field name="report_file">sos_inventory.report_mrn</field>
|
|
<field name="binding_model_id" eval="False"/>
|
|
<field name="binding_type">report</field>
|
|
</record>
|
|
|
|
<template id="report_mrn">
|
|
<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">
|
|
<table class="table">
|
|
<tr>
|
|
<t t-if="o.material_option == True">
|
|
<td>
|
|
<input type="checkbox" id="material" checked="checked"/>
|
|
<label for="vehicle1"> MATERIAL</label>
|
|
</td>
|
|
</t>
|
|
<t t-if="o.material_option == False">
|
|
<td>
|
|
<input type="checkbox" id="material"/>
|
|
<label for="vehicle1"> MATERIAL</label>
|
|
</td>
|
|
</t>
|
|
|
|
<t t-if="o.sfg_option == True">
|
|
<td>
|
|
<input type="checkbox" id="material" checked="checked"/>
|
|
<label for="vehicle2"> SEMI FINISHED GOODS</label>
|
|
</td>
|
|
</t>
|
|
<t t-if="o.sfg_option == False">
|
|
<td>
|
|
<input type="checkbox" id="sfg"/>
|
|
<label for="vehicle2"> SEMI FINISHED GOODS</label>
|
|
</td>
|
|
</t>
|
|
|
|
<t t-if="o.fg_option == True">
|
|
<td>
|
|
<input type="checkbox" id="fg" checked="checked"/>
|
|
<label for="vehicle3"> FINISHED GOOS</label>
|
|
</td>
|
|
</t>
|
|
<t t-if="o.fg_option == False">
|
|
<td>
|
|
<input type="checkbox" id="fg"/>
|
|
<label for="vehicle3"> FINISHED GOOS</label>
|
|
</td>
|
|
</t>
|
|
</tr>
|
|
</table>
|
|
<h3 style="text-align:center">RETURN NOTE</h3>
|
|
<br></br>
|
|
<table class="table">
|
|
<tr><td class="column">MRN/SRN/FRN No</td><td><t t-esc="o.mrn_no"/></td><td class="column">MRN/SRN/FRN Date</td><td><t t-esc="o.mrn_date"/></td></tr>
|
|
<tr><td class="column">MIN/SIN/FIN No</td><td><t t-esc="o.min_no.min_no"/></td><td class="column">MIN/SIN/FIN</td><td><t t-esc="o.min_date"/></td></tr>
|
|
<tr><td class="column">Filled By</td><td><t t-esc="o.filled_by.name"/></td>
|
|
</tr>
|
|
|
|
</table>
|
|
<br></br>
|
|
<table class="table table-bordered">
|
|
<tbody>
|
|
<tr class="column">
|
|
<td class="column">S.No</td>
|
|
<td class="column">Material/Product Name</td>
|
|
<td class="column">UOM</td>
|
|
<td class="column">Return Reason</td>
|
|
<td class="column">Quantity</td>
|
|
|
|
</tr>
|
|
<t t-if="o.material_option == True">
|
|
<t t-foreach="o.line_ids_material" t-as="line_items">
|
|
<tr>
|
|
<td><t t-esc="line_items_index + 1"/></td>
|
|
<td><t t-esc="line_items.component_id.part_no"/></td>
|
|
<td><t t-esc="line_items.uom"/></td>
|
|
<td><t t-esc="line_items.reject_reason"/></td>
|
|
<td><t t-esc="line_items.quantity"/></td>
|
|
</tr>
|
|
</t>
|
|
</t>
|
|
|
|
<t t-if="o.sfg_option == True">
|
|
<t t-foreach="o.line_ids_sfg" t-as="line_items">
|
|
<tr>
|
|
<td><t t-esc="line_items_index + 1"/></td>
|
|
<td><t t-esc="line_items.component_id.name"/></td>
|
|
<td><t t-esc="line_items.uom"/></td>
|
|
<td><t t-esc="line_items.reject_reason"/></td>
|
|
<td><t t-esc="line_items.quantity"/></td>
|
|
</tr>
|
|
</t>
|
|
</t>
|
|
|
|
<t t-if="o.fg_option == True">
|
|
<t t-foreach="o.line_ids_fg" t-as="line_items">
|
|
<tr>
|
|
<td><t t-esc="line_items_index + 1"/></td>
|
|
<td><t t-esc="line_items.component_id.name"/></td>
|
|
<td><t t-esc="line_items.uom"/></td>
|
|
<td><t t-esc="line_items.reject_reason"/></td>
|
|
<td><t t-esc="line_items.quantity"/></td>
|
|
</tr>
|
|
</t>
|
|
</t>
|
|
</tbody>
|
|
</table>
|
|
<br></br>
|
|
<table class="table table-bordered">
|
|
<tbody>
|
|
<tr class="column">
|
|
<td>Prepared by Sign</td>
|
|
<td>Department In-Charge Sign</td>
|
|
<td>Approved by Top Management Sign</td>
|
|
|
|
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<img t-if="o.prepared_by_image" t-att-src="'data:image/png;base64,%s' % (o.prepared_by_image.decode())" alt="Prepared By Sign"/>
|
|
</td>
|
|
<td>
|
|
<img t-if="o.dept_in_charge_image" t-att-src="'data:image/png;base64,%s' % (o.dept_in_charge_image.decode())" alt="Department Incharge Approval Sign"/>
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</template>
|
|
|
|
</odoo>
|