<?xml version="1.0" encoding="utf-8"?>
<terp>
    <data noupdate="1">
        <!--
	Request link
	-->
        <record id="req_link_tracking" model="res.request.link">
            <field name="name">Production Lot</field>
            <field name="object">stock.production.lot</field>
        </record>
        
        <!--
	Resource: stock.location
	-->
        <record id="stock_location_locations" model="stock.location">
            <field name="name">Physical Locations</field>
            <field name="usage">view</field>
        </record>
        <record id="stock_location_locations_partner" model="stock.location">
            <field name="name">Partner Locations</field>
            <field name="usage">view</field>
        </record>
        <record id="stock_location_locations_virtual" model="stock.location">
            <field name="name">Virtual Locations</field>
            <field name="usage">view</field>
        </record>
        
        <record id="location_inventory" model="stock.location">
            <field name="name">Inventory loss</field>
            <field name="location_id" ref="stock_location_locations_virtual"/>
            <field name="usage">inventory</field>
        </record>
        <record id="location_procurement" model="stock.location">
            <field name="name">Procurements</field>
            <field name="location_id" ref="stock_location_locations_virtual"/>
            <field name="usage">procurement</field>
        </record>
        <record id="location_production" model="stock.location">
            <field name="name">Default Production</field>
            <field name="location_id" ref="stock_location_locations_virtual"/>
            <field name="usage">production</field>
        </record>
        <record id="stock_location_suppliers" model="stock.location">
            <field name="name">Suppliers</field>
            <field name="location_id" ref="stock_location_locations_partner"/>
            <field name="usage">supplier</field>
        </record>
        <record id="stock_location_customers" model="stock.location">
            <field name="name">Customers</field>
            <field name="location_id" ref="stock_location_locations_partner"/>
            <field name="usage">customer</field>
        </record>
        <record id="stock_location_company" model="stock.location">
            <field model="res.company" name="name" search="[]" use="name"/>
            <field name="usage">view</field>
            <field name="location_id" ref="stock_location_locations"/>
        </record>
        <record id="stock_location_output" model="stock.location">
            <field name="name">Output</field>
            <field name="location_id" ref="stock_location_company"/>
            <field name="usage">internal</field>
            <field name="chained_location_type">customer</field>
        </record>
        <record id="stock_location_stock" model="stock.location">
            <field name="name">Stock</field>
            <field name="location_id" ref="stock_location_company"/>
        </record>
        
        <!--
	Properties
	-->
        <record forcecreate="True" id="property_stock_supplier" model="ir.property">
            <field name="name">property_stock_supplier</field>
            <field name="fields_id" search="[('model','=','res.partner'),('name','=','property_stock_supplier')]"/>
            <field eval="'stock.location,'+str(stock_location_suppliers)" name="value"/>
        </record>
        <record forcecreate="True" id="property_stock_customer" model="ir.property">
            <field name="name">property_stock_customer</field>
            <field name="fields_id" search="[('model','=','res.partner'),('name','=','property_stock_customer')]"/>
            <field eval="'stock.location,'+str(stock_location_customers)" name="value"/>
        </record>
        
        <record forcecreate="True" id="property_stock_procurement" model="ir.property">
            <field name="name">property_stock_procurement</field>
            <field name="fields_id" search="[('model','=','product.template'),('name','=','property_stock_procurement')]"/>
            <field eval="'stock.location,'+str(location_procurement)" name="value"/>
        </record>
        <record forcecreate="True" id="property_stock_inventory" model="ir.property">
            <field name="name">property_stock_inventory</field>
            <field name="fields_id" search="[('model','=','product.template'),('name','=','property_stock_inventory')]"/>
            <field eval="'stock.location,'+str(location_inventory)" name="value"/>
        </record>
        <record forcecreate="True" id="property_stock_production" model="ir.property">
            <field name="name">property_stock_production</field>
            <field name="fields_id" search="[('model','=','product.template'),('name','=','property_stock_production')]"/>
            <field eval="'stock.location,'+str(location_production)" name="value"/>
        </record>
        
        <!--
	Resource: stock.warehouse
	-->
        <record id="warehouse0" model="stock.warehouse">
            <field model="res.company" name="name" search="[]" use="name"/>
            <field name="lot_input_id" ref="stock_location_stock"/>
            <field name="lot_stock_id" ref="stock_location_stock"/>
            <field name="lot_output_id" ref="stock_location_output"/>
        </record>
    </data>
</terp>