<tryton>
    <data>
        <record model="ir.ui.view" id="var_view_tree">
            <field name="model">risk.var</field>
            <field name="type">tree</field>
            <field name="priority" eval="10"/>
            <field name="name">var_tree</field>
        </record>
        <record model="ir.ui.view" id="var_view_form">
            <field name="model">risk.var</field>
            <field name="type">form</field>
            <field name="name">var_form</field>
        </record>

        <record model="ir.action.act_window" id="act_var_form">
            <field name="name">VaR</field>
            <field name="res_model">risk.var</field>
        </record>
        <record model="ir.action.act_window.view"
            id="act_var_form_view">
            <field name="sequence" eval="35"/>
            <field name="view" ref="var_view_form"/>
            <field name="act_window" ref="act_var_form"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_var_form_view2">
            <field name="sequence" eval="25"/>
            <field name="view" ref="var_view_tree"/>
            <field name="act_window" ref="act_var_form"/>
        </record>
        
        <record model="ir.ui.view" id="perf_view_tree">
            <field name="model">risk.perf</field>
            <field name="type">tree</field>
            <field name="name">perf_tree</field>
        </record>
        <record model="ir.ui.view" id="perf_view_graph">
            <field name="model">risk.perf</field>
            <field name="type">graph</field>
            <field name="name">perf_graph</field>
        </record>
        <record model="ir.ui.view" id="perf_view_graph2">
            <field name="model">risk.perf</field>
            <field name="type">graph</field>
            <field name="name">perf_graph2</field>
        </record>

        <record model="ir.ui.view" id="var_line_view_tree">
            <field name="model">risk.var.line</field>
            <field name="type">tree</field>
            <field name="name">var_line_tree</field>
        </record>
        <record model="ir.ui.view" id="var_line_view_form">
            <field name="model">risk.var.line</field>
            <field name="type">form</field>
            <field name="name">var_line_form</field>
        </record>
        <record model="ir.action.act_window" id="act_var_line_form">
            <field name="name">Line</field>
            <field name="res_model">risk.var.line</field>
        </record>
        <record model="ir.action.act_window.view"
            id="act_var_line_form_view1">
            <field name="sequence" eval="10"/>
            <field name="view" ref="var_line_view_tree"/>
            <field name="act_window" ref="act_var_line_form"/>
        </record>
        <record model="ir.action.act_window.view"
            id="act_var_line_form_view2">
            <field name="sequence" eval="20"/>
            <field name="view" ref="var_line_view_form"/>
            <field name="act_window" ref="act_var_line_form"/>
        </record>

        <record model="ir.ui.view" id="var_values_view_tree">
            <field name="model">risk.var.values</field>
            <field name="type">tree</field>
            <field name="name">var_values_tree</field>
        </record>

        <record model="ir.action.wizard" id="act_var">
            <field name="name">Execute VaR</field>
            <field name="wiz_name">risk.var.execute</field>
            <field name="model">risk.var</field>

        </record>
        <record model="ir.action.keyword" id="act_var_keyword">
            <field name="keyword">form_action</field>
            <field name="model">risk.var,-1</field>
            <field name="action" ref="act_var"/>
        </record>

        <record model="ir.action.wizard" id="act_get_position">
            <field name="name">Get position template</field>
            <field name="wiz_name">risk.var.get</field>
            <field name="model">risk.var</field>

        </record>
        <record model="ir.action.keyword" id="act_get_position_keyword">
            <field name="keyword">form_action</field>
            <field name="model">risk.var,-1</field>
            <field name="action" ref="act_get_position"/>
        </record>
        
        <record model="ir.ui.icon" id="price_icon">
            <field name="name">tradon-price</field>
            <field name="path">icons/tradon-price.svg</field>
        </record>
        <menuitem 
            name="Risk"
            sequence="41"
            id="menu_risk_" 
            icon="tradon-price"/>
        <menuitem
            parent="menu_risk_"
            sequence="91"
            action="act_var_form"
            id="menu_var_form"/>
        <!-- <menuitem
            parent="menu_risk"
            sequence="101"
            action="act_var"
            id="menu_var"/> -->
        <!-- <record model="ir.module.config_wizard.item" id="config_wizard_item_var">
            <field name="action" ref="act_var"/>
        </record> -->
    </data>
</tryton>
