Slink/sos_inventory/report/sos_min_report.xml

158 lines
4.8 KiB
XML
Executable File

<odoo>
<record id="action_report_min" model="ir.actions.report">
<field name="name">MIN Form</field>
<field name="model">sos_min</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">sos_inventory.report_min</field>
<field name="report_file">sos_inventory.report_min</field>
<field name="binding_model_id" eval="False"/>
<field name="binding_type">report</field>
</record>
<template id="report_min">
<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">ISSUE NOTE</h3>
<br></br>
<table class="table">
<tr>
<td class="column">MON/SON/FON No</td><td class="column">MON/SON/FON Date</td>
<td class="column">MIN/SIN/FIN No</td><td class="column">MIN/SIN/FIN Date</td>
</tr>
<tr>
<td><t t-esc="o.mon_no.mon_no"/></td><td><t t-esc="o.mon_date"/></td>
<td><t t-esc="o.min_no"/></td><td><t t-esc="o.min_date"/></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">QP No</td>
<td class="column">Quantity</td>
<td class="column">GRN No. / Date (or) DC No. / Date</td>
<td class="column">Issued Date</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.qp_no"/></td>
<td><t t-esc="line_items.quantity"/></td>
<td><t t-esc="line_items.grn_dc_no"/></td>
<td><t t-esc="line_items.issued_date"/></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.qp_no"/></td>
<td><t t-esc="line_items.quantity"/></td>
<td><t t-esc="line_items.grn_dc_no"/></td>
<td><t t-esc="line_items.issued_date"/></td>
<td><t t-esc="line_items.issued_to.name"/></td>
<td><t t-esc="line_items.receiver_sign"/></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.qp_no"/></td>
<td><t t-esc="line_items.quantity"/></td>
<td><t t-esc="line_items.grn_dc_no"/></td>
<td><t t-esc="line_items.issued_date"/></td>
<td><t t-esc="line_items.issued_to.name"/></td>
<td><t t-esc="line_items.receiver_sign"/></td>
</tr>
</t>
</t>
</tbody>
</table>
<br></br>
<table class="table table-bordered">
<tbody>
<tr class="column">
<td>Stores RM/PM Stores In charge Sign</td>
</tr>
<tr>
<td>
<img t-if="o.stores_approval_image" t-att-src="'data:image/png;base64,%s' % (o.stores_approval_image.decode())" alt="Received By Sign"/>
</td>
</tr>
</tbody>
</table>
</div>
</t>
</t>
</t>
</template>
</odoo>