<?xml version="1.0" encoding="UTF-8"?>
<odoo>
 <record id="action_tc_return" model="ir.actions.act_window">
    <field name="name">Transfer Challan</field>
    <field name="type">ir.actions.act_window</field>
    <field name="res_model">sos_transfer_challan_return_from_customer</field>
    <field name="view_mode">tree,form</field>
</record>
    <record id="sos_transfer_challan_return_from_customer_view_tree" model="ir.ui.view">
        <field name="name">sos_transfer_challan_return_from_customer.view.tree</field>
        <field name="model">sos_transfer_challan_return_from_customer</field>
        <field name="arch" type="xml">
            <tree>
                
                <field name="tc_no"/>
                <field name="mrn_ref_no"/>
          
                


            </tree>
        </field>
    </record>
       <record id="sos_transfer_challan_return_from_customer_form_view" model="ir.ui.view">
      <field name="name">Form</field>
        <field name="model">sos_transfer_challan_return_from_customer</field>
        <field name="arch" type="xml">
  <form string="Model Form">
                            
                    <sheet>
                 


    <!-- First Column -->
    <group>
     <group>
        <field name="tc_no"/>
         </group>
          <group>
        <field name="mrn_ref_no"/>
    </group>
    </group>

 <notebook>
 <page string="Summary">
 <field name="line_ids">
<tree editable="bottom">
 <field name="item_name"/>
 <field name="item_type"/>
 <field name="combined_incoming_doc_ref"/>
</tree>
</field>
 </page>
  <page string="Transaction Details">
 <!-- <field name="line_ids">
<tree editable="bottom">
 <field name="stores_handovered_by"/>
 <field name="stores_handovered_on"/>
  <field name="qc_tested_by"/>
  <field name="qc_tested_on"/>
</tree>
</field> -->
<notebook>
<page string="From Stores to QC">
<field name="line_ids">
<tree editable="bottom">
<field name="item_name"/>
 <field name="stores_handovered_by"/>
 <field name="stores_handovered_on"/>
<field name="received_qty" string="Quantity Moved"/>
</tree>
</field>
</page>
<page string="Quality Inspection">
<field name="line_ids">
<tree editable="bottom">
<field name="item_name"/>
<field name="combined_incoming_doc_ref"/>
 <field name="received_qty"/>
 <field name="approved_qty"/>
 <field name="rejected_qty"/>
 <field name="qc_tested_by"/>
 <field name="qc_tested_on"/>
 <field name="ncmr_ref"/>
</tree>
</field>
</page>
<page string="From QC to Stores">
<field name="line_ids">
<tree editable="bottom">
<field name="item_name"/>
 <field name="stores_received_by"/>
 <field name="stores_received_on"/>
</tree>
</field>
</page>
</notebook>
</page>
 </notebook>


                        
                


                    </sheet>
                </form>
        </field>
    </record>
<menuitem id="tc_return_from_customer_menu"
              name="Transfer Challan (Return From Customer)"
              parent="cnp_forms_menu_root" action="action_tc_return" groups="sos_inventory.sos_scg_group_manager,sos_inventory.sos_scg_group_user,sos_inventory.sos_production_user,sos_inventory.sos_qc_user,sos_inventory.sos_management_user,sos_inventory.sos_qa_user"/>
              

</odoo>
