<odoo>
    <record id="view_sos_fir_testing_parameters_form" model="ir.ui.view">
        <field name="name">sos_fir_testing_parameters.form</field>
        <field name="model">sos_fir_testing_parameters</field>
        <field name="arch" type="xml">
            <form string="Testing Parameters">
                <sheet>
                    <group>
                        <field name="product_type"/>
                          </group>
                         <notebook>

                        <page string="FIR Testing Parameters" groups="sos_inventory.sos_qc_user,sos_inventory.sos_qa_user">
                        <field name="fir_parameter_ids">
                            <tree string="Parameters"  editable="bottom">
                            <field name="sequence" widget="handle"/>
                                <field name="name"/>
                                <field name="specification"/>
                                <field name="results"/>
                                <field name="inspection_decision"/>
                            </tree>
                        </field>
                        </page>
                     
                        </notebook>
                  
                </sheet>
            </form>
        </field>
    </record>
    <record id="view_sos_testing_parameters_form" model="ir.ui.view">
        <field name="name">sos_testing_parameters.form</field>
        <field name="model">sos_testing_parameters</field>
        <field name="arch" type="xml">
            <form string="Testing Parameters">
                <sheet>
                    <group>
                        <field name="fg_name"/>
                          </group>
                         <notebook>
                        <page string="In-Process/BRR Testing Parameters" groups="sos_inventory.sos_qc_user,sos_inventory.sos_qa_user">
                        <field name="parameter_ids">
                            <tree string="Parameters"  editable="bottom">
                            <field name="sequence" widget="handle"/>
                                <field name="name"/>
                                <field name="specification"/>
                                <field name="results"/>
                                <field name="inspection_decision"/>
                            </tree>
                        </field>
                        </page>
                        <!-- <page string="FIR Testing Parameters" groups="sos_inventory.sos_qc_user,sos_inventory.sos_qa_user">
                        <field name="fir_parameter_ids">
                            <tree string="Parameters"  editable="bottom">
                            <field name="sequence" widget="handle"/>
                                <field name="name"/>
                                <field name="specification"/>
                                <field name="results"/>
                                <field name="inspection_decision"/>
                            </tree>
                        </field>
                        </page> -->
                        <page string="Specifications" groups="sos_inventory.sos_production_user">
                        <field name="specification_ids">
                            <tree string="Specifications"  editable="bottom">
                                <field name="name"/>
                            </tree>
                        </field>
                        </page>
                        <page string="Deliverables" groups="sos_inventory.sos_ce_user">
                        <field name="deliverables_ids">
                            <tree string="Deliverables"  editable="bottom">
                                <field name="name"/>
                            </tree>
                        </field>
                        </page>
                        <page string="Defectives" groups="sos_inventory.sos_qc_user,sos_inventory.sos_qa_user">
                        <field name="defective_ids">
                            <tree string="Defectives"  editable="bottom">
                                <field name="name"/>
                            </tree>
                        </field>
                        </page>
                        </notebook>
                  
                </sheet>
            </form>
        </field>
    </record>

    <!-- Tree view for sos_testing_parameters -->
    <record id="view_sos_testing_parameters_tree" model="ir.ui.view">
        <field name="name">sos_testing_parameters.tree</field>
        <field name="model">sos_testing_parameters</field>
        <field name="arch" type="xml">
            <tree string="Testing Parameters">
                <field name="fg_name"/>
                <field name="parameter_ids" groups="sos_inventory.sos_qc_user,sos_inventory.sos_qa_user"/>
                <!-- <field name="fir_parameter_ids" groups="sos_inventory.sos_qc_user,sos_inventory.sos_qa_user"/> -->
                <field name="specification_ids" groups="sos_inventory.sos_production_user"/>
                <field name="deliverables_ids" groups="sos_inventory.sos_ce_user"/>
                 <field name="defective_ids" groups="sos_inventory.sos_qc_user,sos_inventory.sos_qa_user"/>
            </tree>
        </field>
    </record>
    <record id="view_sos_fir_testing_parameters_tree" model="ir.ui.view">
        <field name="name">sos_fir_testing_parameters.tree</field>
        <field name="model">sos_fir_testing_parameters</field>
        <field name="arch" type="xml">
            <tree string="FIR Testing Parameters">
                <field name="product_type"/>
                <field name="fir_parameter_ids"/>
          </tree>
        </field>
    </record>
    <!-- Action to open sos_testing_parameters -->
    <record id="action_sos_testing_parameters" model="ir.actions.act_window">
        <field name="name">In-Process Configurations</field>
        <field name="res_model">sos_testing_parameters</field>
        <field name="view_mode">tree,form</field>
        <field name="help" type="html">
            <p class="o_view_nocontent_create">
                Click to create a new SOS Testing Parameters.
            </p>
        </field>
    </record>
    <record id="action_sos_fir_testing_parameters" model="ir.actions.act_window">
        <field name="name">FIR Configurations</field>
        <field name="res_model">sos_fir_testing_parameters</field>
        <field name="view_mode">tree,form</field>
        <field name="help" type="html">
            <p class="o_view_nocontent_create">
                Click to create a new SOS Testing Parameters.
            </p>
        </field>
    </record>
    <!-- Menu item to access sos_testing_parameters -->
    <menuitem id="menu_sos_testing_parameters"
              name="In-Process Configurations"
              parent="settings_root_menu" action="action_sos_testing_parameters" groups="sos_inventory.sos_qc_user,sos_inventory.sos_qa_user,sos_inventory.sos_ce_user,sos_inventory.sos_production_user,sos_inventory.sos_management_user"/>
               <menuitem id="menu_sos_fir_testing_parameters"
              name="FIR Parameters Configurations"
              parent="settings_root_menu" action="action_sos_fir_testing_parameters" groups="sos_inventory.sos_qc_user,sos_inventory.sos_qa_user,sos_inventory.sos_ce_user,sos_inventory.sos_production_user,sos_inventory.sos_management_user"/>
</odoo>