<odoo>
  <record id="action_report_ncmr" model="ir.actions.report">
        <field name="name">NCMR Report</field>
        <field name="model">sos_ncmr</field>
        <field name="report_type">qweb-pdf</field>
        <field name="report_name">sos_inventory.report_ncmr</field>
        <field name="report_file">sos_inventory.report_ncmr</field>
        <field name="binding_model_id" eval="False"/>
        <field name="binding_type">report</field>
    </record>

<template id="report_ncmr">
    <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">Non-Conforming Material Report</h3>
                    <br></br>
                    <table class="table">
                    <tr>
                    <td class="column">NCMR No</td><td class="column">NCMR Date</td>
                    </tr>
                    <tr>
                    <td><t t-esc="o.ncmr_no"/></td><td><t t-esc="o.ncmr_date"/></td>
                    </tr>
                  
                    </table>
                     <br></br>
                      <table class="table table-bordered">
                <tbody>    
             <tr class="column">
    <td class="column">Material/Product Name</td>
    <td class="column">Rejected Quantity</td>

    
    
 

</tr>  
 <t t-if="o.material_option == True">  
<tr>
<td><t t-esc="o.material_name.part_no"/></td>
<td><t t-esc="o.rejected_qty"/></td>


</tr>
</t>

 <t t-if="o.sfg_option == True">  
<tr>
<td><t t-esc="o.sfg_name.name"/></td>
<td><t t-esc="o.rejected_qty"/></td>

</tr>
</t>

 <t t-if="o.fg_option == True">  
<tr>
<td><t t-esc="o.fg_name.display_name"/></td>
<td><t t-esc="o.rejected_qty"/></td>
</tr>
</t>
</tbody>
</table>
 <br></br>


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

</odoo>
