<tryton>
    <data>
        <record model="ir.ui.view" id="pos_view_tree">
            <field name="model">risk.position</field>
            <field name="type">tree</field>
            <field name="priority" eval="10"/>
            <field name="name">pos_tree</field>
        </record>
        <record model="ir.ui.view" id="pos_view_form">
            <field name="model">risk.position</field>
            <field name="type">form</field>
            <field name="name">pos_form</field>
        </record>

        <record model="ir.ui.view" id="pos_report_view_tree">
            <field name="model">risk.position.report</field>
            <field name="type">tree</field>
            <field name="priority" eval="10"/>
            <field name="name">pos_report_tree</field>
        </record>
        <record model="ir.ui.view" id="pos_report_context_view_form">
            <field name="model">risk.position.context</field>
            <field name="type">form</field>
            <field name="priority" eval="10"/>
            <field name="name">pos_report_context_form</field>
        </record>
        <record model="ir.action.act_window" id="act_pos_report_form">
            <field name="name">Position report</field>
            <field name="res_model">risk.position.report</field>
            <field name="context_model">risk.position.context</field>
        </record>
        <record model="ir.action.act_window.view"
            id="act_pos_report_form_view">
            <field name="sequence" eval="35"/>
            <field name="view" ref="pos_report_view_tree"/>
            <field name="act_window" ref="act_pos_report_form"/>
        </record>

        <record model="ir.action.act_window" id="act_pos_form">
            <field name="name">Position</field>
            <field name="res_model">risk.position</field>
        </record>
        <record model="ir.action.act_window.view"
            id="act_pos_form_view">
            <field name="sequence" eval="35"/>
            <field name="view" ref="pos_view_form"/>
            <field name="act_window" ref="act_pos_form"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_pos_form_view2">
            <field name="sequence" eval="25"/>
            <field name="view" ref="pos_view_tree"/>
            <field name="act_window" ref="act_pos_form"/>
        </record>

        <menuitem
            parent="menu_risk_"
            sequence="95"
            action="act_pos_form"
            id="menu_pos_form"/>
        <menuitem
            parent="menu_risk_"
            sequence="100"
            action="act_pos_report_form"
            id="menu_pos_report_form"/>
    </data>
</tryton>