<?xml version="1.0" encoding="utf-8"?>
<terp>
    <data>
        
        <record id="report_stock_prodlots_tree" model="ir.ui.view">
            <field name="name">report.stock.prodlots.view</field>
            <field name="model">report.stock.prodlots</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Stock by production lots">
                    <field name="location_id" select="1"/>
                    <field name="product_id" select="1"/>
                    <field name="prodlot_id" select="1"/>
                    <field name="name"/>
                </tree>
            </field>
        </record>
        
        <record id="action_report_stock_prodlots_form" model="ir.actions.act_window">
            <field name="name">Stock by production lots</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">report.stock.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_report_stock_prodlots_form" id="menu_report_stock_prodlots" parent="next_id_62"/>
        
        <act_window domain="[('location_id', '=', active_id)]" id="act_stock_location_2_report_stock_prodlots" name="Stock by production lots" res_model="report.stock.prodlots" src_model="stock.location"/>
        
        <act_window domain="[('product_id', '=', active_id)]" id="act_product_product_2_report_stock_prodlots" name="Stock by production lots" res_model="report.stock.prodlots" src_model="product.product"/>
        
        <act_window domain="[('prodlot_id', '=', active_id)]" id="act_stock_production_lot_2_report_stock_prodlots" name="Stock" res_model="report.stock.prodlots" src_model="stock.production.lot"/>
        
    </data>
</terp>