<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
    <record id="sos_suppliers_view_tree" model="ir.ui.view">
        <field name="name">sos_suppliers.view.tree</field>
        <field name="model">sos_suppliers</field>
        <field name="arch" type="xml">
            <tree>

        <field name="supplier_code"/>
        <field name="supplier_name"/>
        <field name="address"/>
        <field name="contact_person"/>
        <field name="contact_no"/>
        <field name="email"/>
        <field name="scope"/>
        <field name="gst_no" optional="hide"/>
        <field name="qp_no" optional="hide"/>
        <field name="approval" optional="hide"/>
        <field name="re_evaluation_due_date" optional="hide"/>
        <field name="re_evaluation_method" optional="hide"/>
<field name="write_uid" string="Last Edited By" optional="hide"/>
                <field name="write_date" string="Last Edited On" optional="hide"/>

            </tree>
        </field>
    </record>
            <record id="sos_suppliers_kanban_view" model="ir.ui.view">
            <field name="name">sos_suppliers.kanban</field>
            <field name="model">sos_suppliers</field>
            <field name="arch" type="xml">
                <kanban class="o_kanban_mobile">
                    <field name="supplier_code"/>
                    <templates>
                        <t t-name="kanban-box">
                            <div t-attf-class="oe_kanban_global_click sos_card">
                                <div class="row">
                                    <div class="col-9">
                                        <strong><field name="supplier_name"/></strong>
                                    </div>
                            
                                </div>
                                <div>
                                    <strong>SARF NO: </strong><field name="supplier_code"/><br/>
                                    <strong>Contact Details: </strong><field name="contact_person"/><field name="contact_no"/><br/>
                                </div>
                            </div>
                        </t>
                    </templates>
                </kanban>
            </field>
        </record>
 <record id="action_suppliers_list" model="ir.actions.act_window">
    <field name="name">Suppliers List</field>
    <field name="type">ir.actions.act_window</field>
    <field name="res_model">sos_suppliers</field>
    <field name="view_mode">tree,form,kanban</field>
    <field name="view_id" ref="sos_suppliers_view_tree"/>
</record>
<record id="sos_suppliers_form_view" model="ir.ui.view">
    <field name="name">Form</field>
    <field name="model">sos_suppliers</field>
    <field name="arch" type="xml">
        <form>
            <sheet>
                                          <h2 style="text-align: center;text-transform: uppercase;text-shadow: 1px 1p 1px #140718;color: #65407c;padding:5px;">Suppliers</h2><hr></hr><br></br>  

                <group class="oe_row">
                    <group class="col-6">
                        <field name="supplier_code"/>
                        <field name="supplier_name"/>
                    </group>
                    <group class="col-6">
                        <field name="address"/>
                        <field name="shipped_from_address"/>
                        
                    </group>
                </group>
                <group class="oe_row">
                    <group class="col-6">
                
                         <field name="email" widget="email"/>
                         <field name="contact_no" widget="phone"/>
                    </group>
                    <group class="col-6">
                        <field name="contact_person"/>
                        <field name="bank_details"/>
                    </group>
                </group>
                <group class="oe_row">
                    <group class="col-6">
                        <field name="qp_no"/>
                        <field name="gst_no"/>
                       
                    </group>
                    <group class="col-6">
                       <field name="cin_no"/>
                        <field name="pan_no"/>
                       
                       
                    </group>
                </group>
                  <group class="oe_row">
                    <group class="col-6">
                         <field name="msme_no"/>
                         <field name="iso_no"/>
                    </group>
                    <group class="col-6">
                    <field name="iso_date"/>
                        <field name="scope"/>
                    </group>
                </group>
                <group class="oe_row">
                    <group class="col-6">
                         <field name="approval"/>
                         <field name="last_evaluation_date"/>
                    </group>
                    <group class="col-6">
                    <field name="re_evaluation_due_date"/>
                        <field name="re_evaluation_method"/>
                    </group>
                </group>
                 <group class="oe_row">
                    <group class="col-6">
                         <field name="credit_period"/>
                         <field name="other_terms"/>
                    </group>
                </group>
                <notebook>
                <page string="Quality Policy">
                <field name="quality_policy" filename="quality_policy_filename"  widget="pdf_viewer"/>
                <field name="quality_policy_filename" invisible="1"/>
                </page>
                <page string="SARF Document">
                <field name="sarf_doc" filename="sarf_doc_filename"  widget="pdf_viewer"/>
                <field name="sarf_doc_filename" invisible="1"/>
                </page>
                <page string="ISO Certificate">
                <field name="iso_certificate" filename="iso_certificate_filename"  widget="pdf_viewer"/>
                <field name="iso_certificate_filename" invisible="1"/>
                </page>
                </notebook>
            </sheet>
        </form>
    </field>
</record>


              <menuitem id="suppliers_master_menu"
              name="Suppliers"
              parent="vendors_menu_root"
              action="action_suppliers_list"/>
              
</odoo>
