<odoo>

    <record id="view_mgmtsystem_hazard_risk_computation_form" model="ir.ui.view">
        <field name="name">mgmtsystem.hazard.risk_computation.form</field>
        <field name="type">form</field>
        <field name="model">mgmtsystem.hazard.risk.computation</field>
        <field name="arch" type="xml">
            <form string="Risk Computation">
                <group colspan="4" col="4">
                    <field name="company_id" groups="base.group_multi_company" />
                    <newline />
                    <field name="name" />
                    <newline />
                    <field name="description" />
                </group>
            </form>
        </field>
    </record>

    <record id="view_mgmtsystem_hazard_risk_computation_tree" model="ir.ui.view">
        <field name="name">mgmtsystem.hazard.risk_computation.tree</field>
        <field name="model">mgmtsystem.hazard.risk.computation</field>
        <field name="type">tree</field>
        <field name="arch" type="xml">
            <tree>
                <field name="company_id" />
                <field name="name" />
                <field name="description" />
            </tree>
        </field>
    </record>

    <record id="view_mgmtsystem_hazard_risk_computation_filter" model="ir.ui.view">
        <field name="name">Risk Computations</field>
        <field name="model">mgmtsystem.hazard.risk.computation</field>
        <field name="type">search</field>
        <field name="arch" type="xml">
            <search string="Risk Computations">
                <field name="company_id" />
                <field name="name" />
                <field name="description" />
            </search>
        </field>
    </record>

    <record
        id="open_mgmtsystem_hazard_risk_computation_list"
        model="ir.actions.act_window"
    >
        <field name="name">Risk Computations</field>
        <field name="res_model">mgmtsystem.hazard.risk.computation</field>
        <field name="view_mode">tree,form</field>
        <field name="view_id" eval="False" />
        <field
            name="search_view_id"
            ref="view_mgmtsystem_hazard_risk_computation_filter"
        />
    </record>

    <menuitem
        id="menu_open_hazard_risk_computation"
        action="open_mgmtsystem_hazard_risk_computation_list"
        parent="mgmtsystem_hazard.menu_mgmtsystem_configuration_hazards"
        sequence="20"
        groups="mgmtsystem.group_mgmtsystem_manager"
    />

</odoo>
