<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
    <record id="sos_sfg_bom_view_tree" model="ir.ui.view">
        <field name="name">sos_sfg_bom.view.tree</field>
        <field name="model">sos_sfg_bom</field>
        <field name="arch" type="xml">
            <tree>
                <field name="name"/>
                <field name="fg_name"/>
                <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="action_sfg_bom_list" model="ir.actions.act_window">
    <field name="name">Semi-Finished Goods BOM</field>
    <field name="type">ir.actions.act_window</field>
    <field name="res_model">sos_sfg_bom</field>
    <field name="view_mode">tree,form,kanban</field>
     <field name="help" type="html">
        <p class="o_view_nocontent_smiling_face">
        No BOM Found
        </p>
        </field>
</record>
       <record id="sos_sfg_bom_form_view" model="ir.ui.view">
      <field name="name">Form</field>
        <field name="model">sos_sfg_bom</field>
        <field name="arch" type="xml">
            <form>
            <sheet>
            <header>
<button type="object" string="Export" class="btn-warning" name="action_export"></button>
</header>
       <h2 style="text-align: center;text-transform: uppercase;text-shadow: 1px 1p 1px #140718;color: #65407c;padding:5px;">Semi-Finished Goods BOM</h2><hr></hr><br></br>  

           <group>
                <group>
                <field name="name"/>
                <field name="bom_version"/>
                <field name="assembling_charges"/>
                 </group>
                 <group>
                <field name="fg_name" widget="many2many_tags"/>
                <field name="pcb_version"/>
    
                   </group>
                 </group>
                   <notebook>
                        <page name="Components" string="Materials">
                       
                         <div style="float:right;margin-bottom: 10px;">
                          <button string="Bulk Upload Materials" type="object" name="action_bulk_upload" class="oe_highlight"/>
                        </div>
                        <field name="sfg_bom_line_ids" mode="tree">

                          <tree string="Tree View Title" limit="25" editable="bottom">
                              <field name="primary_component_id"/>
                              <field name="inspection_method" widget="color_picker"/>
                              <field name="uom"/>
                               <field name="quantity"/> 
                              <field name="unit_price"/>
                              <field name="total_cost" readonly="1"/>

                              </tree>
                                </field>
                                     <group colspan="2"
                                   class="oe_subtotal_footer oe_right">
<label for="overall_total"/><field name="overall_total" nolabel="1" widget="monetary" readonly="True"/>
                            </group>
                         <div class="oe_clear"/>
                        </page>
                    <!-- <page name="Material BOM" string="Material BOM">
                    <field name="material_bom_line_ids" widget="many2many_list">

                    <tree string="Tree View Title" editable="bottom">
                    <field name="name"/>
                    </tree>
                    </field>

                    </page> -->
                        
                    </notebook>
                </sheet>
            </form>
        </field>
    </record>

              <menuitem id="sfg_bom_menu"
              name="SFG BOM"
              parent="bom_menu_root"  sequence="2"
              action="action_sfg_bom_list"/>
            
              
</odoo>
