<?xml version="1.0"?>
<!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
    <data>

        <record model="ir.ui.view" id="product_cost_history_view_tree">
            <field name="model">product.product.cost_history</field>
            <field name="type">tree</field>
            <field name="name">product_cost_history_tree</field>
        </record>

        <record model="ir.ui.view" id="product_cost_history_view_graph">
            <field name="model">product.product.cost_history</field>
            <field name="type">graph</field>
            <field name="name">product_cost_history_graph</field>
        </record>

        <record model="ir.action.act_window" id="act_product_cost_history_form">
            <field name="name">Product Cost History</field>
            <field name="res_model">product.product.cost_history</field>
            <field name="domain"
                eval="[If(Eval('active_ids', []) == [Eval('active_id')], ('product', '=', Eval('active_id')), ('product', 'in', Eval('active_ids')))]"
                pyson="1"/>
        </record>
        <record model="ir.action.act_window.view" id="act_product_cost_history_form_view1">
            <field name="sequence" eval="10"/>
            <field name="view" ref="product_cost_history_view_tree"/>
            <field name="act_window" ref="act_product_cost_history_form"/>
        </record>
        <record model="ir.action.act_window.view" id="act_product_cost_history_form_view2">
            <field name="sequence" eval="20"/>
            <field name="view" ref="product_cost_history_view_graph"/>
            <field name="act_window" ref="act_product_cost_history_form"/>
        </record>
        <record model="ir.action.keyword"
            id="act_product_cost_history_keyword1">
            <field name="keyword">form_relate</field>
            <field name="model">product.product,-1</field>
            <field name="action" ref="act_product_cost_history_form"/>
        </record>
    </data>
</tryton>
