<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <record id="stock_report_prodlots_tree" model="ir.ui.view">
            <field name="name">stock.report.prodlots.view</field>
            <field name="model">stock.report.prodlots</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Stock by Lots">
                    <field name="location_id"/>
                    <field name="product_id"/>
                    <field name="prodlot_id"/>
                    <field name="name"/>
                </tree>
            </field>
        </record>
        <record id="action_stock_report_prodlots_form" model="ir.actions.act_window">
            <field name="name">Stock by Lots</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">stock.report.prodlots</field>
            <field name="view_type">form</field>
            <field name="view_mode">form,tree</field>
        </record>

        <menuitem
            id="next_id_61"
            name="Reporting"
            parent="stock.menu_stock_root"/>

        <menuitem
            id="next_id_62"
            name="Traceability"
            parent="next_id_61"/>

        <menuitem
            action="action_stock_report_prodlots_form"
            id="menu_stock_report_prodlots"
            parent="next_id_62"/>

        <act_window
            context="{'product_id': active_id}"
            id="act_stock_product_location_open"
            name="Stock by Location"
            res_model="stock.location"
            src_model="product.product"/>

        <act_window
            domain="[('location_id', '=', active_id)]"
            id="act_stock_location_2_stock_report_prodlots"
            name="Stock by Lots"
            res_model="stock.report.prodlots"
            src_model="stock.location"/>

        <act_window
            domain="[('product_id','=',active_id)]"
            id="act_product_product_2_stock_report_prodlots"
            name="Stock by Lots"
            res_model="stock.report.prodlots"
            src_model="product.product"/>

        <act_window
            domain="[('prodlot_id', '=', active_id)]"
            id="act_stock_production_lot_2_stock_report_prodlots"
            name="Stock" res_model="stock.report.prodlots"
            src_model="stock.production.lot"/>


       	<!-- report , stock inventories date... start -->
		<record model="ir.ui.view" id="report_stock_lines_date_tree">
			<field name="name">report.stock.lines.date.tree</field>
			<field name="model">report.stock.lines.date</field>
			<field name="type">tree</field>
			<field name="arch" type="xml">
				<tree string="Dates of Inventories">
					<field name="product_id"/>
					<field name="id"/>
					<field name="create_date" />
				</tree>
			</field>
		</record>

		<record model="ir.ui.view" id="report_stock_lines_date_form">
			<field name="name">report.stock.lines.date.form</field>
			<field name="model">report.stock.lines.date</field>
			<field name="type">form</field>
			<field name="arch" type="xml">
				<form string="Dates of Inventories">
					<field name="product_id" select="1"/>
					<field name="id" select="2"/>
					<field name="create_date" select="1" />
				</form>
			</field>
		</record>

		<record model="ir.actions.act_window" id="action_stock_line_date">
			<field name="name">Dates of Inventories</field>
			<field name="res_model">report.stock.lines.date</field>
			<field name="view_type">form</field>
			<field name="view_mode">tree,form</field>
		</record>
		
		<menuitem parent="next_id_61" action="action_stock_line_date" id="menu_report_stock_line_date"/>
		
		<record id="view_location_tree_3" model="ir.ui.view">
            <field name="name">stock.location.tree</field>
            <field name="model">stock.location</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Stock Location" colors="blue:usage=='view';darkred:usage=='internal'">
                    <field name="complete_name"/>
                    <field name="usage"/>
                    <field name="stock_real_value" />
                    <field name="stock_virtual_value" />
                </tree>
            </field>
        </record>
        
        <record id="action_location_tree_3" model="ir.actions.act_window">
            <field name="name">Locations' Values</field>
            <field name="res_model">stock.location</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree</field>
            <field name="view_id" ref="view_location_tree_3"/>
        </record>
        <menuitem action="action_location_tree_3" id="menu_action_location_tree_3" parent="next_id_61" />

	<!-- end...  -->

    </data>
</openerp>
