odoo/addons/stock/stock_data.xml

102 lines
4.1 KiB
XML

<?xml version="1.0"?>
<terp>
<data noupdate="1">
<!--
Request link
-->
<record model="res.request.link" id="req_link_tracking">
<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">Locations</field>
</record>
<record model="stock.location" id="location_inventory">
<field name="name">Inventory loss</field>
<field name="location_id" ref="stock_location_locations"/>
<field name="usage">inventory</field>
</record>
<record model="stock.location" id="location_procurement">
<field name="name">Procurements</field>
<field name="location_id" ref="stock_location_locations"/>
<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"/>
<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"/>
<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"/>
<field name="usage">customer</field>
</record>
<record id="stock_location_company" model="stock.location">
<field name="name">Company</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">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>
<record id="stock_location_input" model="stock.location">
<field name="name">Input</field>
<field name="location_id" ref="stock_location_stock"/>
</record>
<!--
Properties
-->
<record model="ir.property" id="property_stock_supplier" forcecreate="True">
<field name="name">property_stock_supplier</field>
<field name="fields_id" search="[('model','=','res.partner'),('name','=','property_stock_supplier')]"/>
<field name="value" eval="'stock.location,'+str(stock_location_suppliers)"/>
</record>
<record model="ir.property" id="property_stock_customer" forcecreate="True">
<field name="name">property_stock_customer</field>
<field name="fields_id" search="[('model','=','res.partner'),('name','=','property_stock_customer')]"/>
<field name="value" eval="'stock.location,'+str(stock_location_customers)"/>
</record>
<record model="ir.property" id="property_stock_procurement" forcecreate="True">
<field name="name">property_stock_procurement</field>
<field name="fields_id" search="[('model','=','product.template'),('name','=','property_stock_procurement')]"/>
<field name="value" eval="'stock.location,'+str(location_procurement)"/>
</record>
<record model="ir.property" id="property_stock_inventory" forcecreate="True">
<field name="name">property_stock_inventory</field>
<field name="fields_id" search="[('model','=','product.template'),('name','=','property_stock_inventory')]"/>
<field name="value" eval="'stock.location,'+str(location_inventory)"/>
</record>
<record model="ir.property" id="property_stock_production" forcecreate="True">
<field name="name">property_stock_production</field>
<field name="fields_id" search="[('model','=','product.template'),('name','=','property_stock_production')]"/>
<field name="value" eval="'stock.location,'+str(location_production)"/>
</record>
<!--
Resource: stock.warehouse
-->
<record model="stock.warehouse" id="warehouse0">
<field name="name">Warehouse</field>
<field name="lot_input_id" ref="stock_location_input"/>
<field name="lot_stock_id" ref="stock_location_stock"/>
<field name="lot_output_id" ref="stock_location_output"/>
</record>
</data>
</terp>