<odoo>
  <record id="action_report_fptc" model="ir.actions.report">
        <field name="name">FPTC Form</field>
        <field name="model">sos_fptc</field>
        <field name="report_type">qweb-pdf</field>
        <field name="report_name">sos_inventory.report_fptc</field>
        <field name="report_file">sos_inventory.report_fptc</field>
        <field name="binding_model_id" eval="False"/>
        <field name="binding_type">report</field>
    </record>

<template id="report_fptc">
    <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">
           
                    <h3 style="text-align:center">Finished Product Transfer Challan (FPTC)</h3>
                    <br></br>
                    <table class="table">
                    <tr><td class="column">FPTC NO</td><td><t t-esc="o.fptc_no"/></td></tr>
                    <tr><td class="column">Indent No</td><td><t t-esc="o.plan_ref_no"/></td></tr>
                    <tr><td class="column">Product Name</td><td><t t-esc="o.fg_name.name"/></td></tr>
                    </table>
                     <br></br>
                      <table class="table">
                <tbody>    
             <tr class="column">
    <td class="column">S.No</td>
    <td class="column">Batch No</td>
    <td class="column">Serial No</td>
    <td class="column">Production to QC Transfer qty</td>
    <td class="column">QC to Production Transfer qty</td>
    <td class="column">Stores received By</td>


</tr>  
<t t-foreach="o.line_ids" t-as="line_items">
<tr>
<td><t t-esc="line_items_index + 1"/></td>
<td><t t-esc="line_items.batch_no"/></td>
<td><t t-esc="line_items.serial_no"/></td>
<td><t t-esc="line_items.production_to_qc_transfer_qty"/></td>
<td><t t-esc="line_items.qc_to_stores_transfer_qty"/></td>
<td><t t-esc="line_items.stores_received_by.name"/></td>



</tr>
</t>
<tr><td style="text-align:right" colspan="5" class="column">Total Transfer Quantity</td><td class="column"><t t-esc="o.total_transfer_qty_from_qc_to_stores"/></td></tr>


</tbody>
</table>
 <br></br>


                </div>
            </t>
        </t>
    </t>
</template>

</odoo>
