improve
[odoo/odoo.git] / addons / stock / stock_data.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data noupdate="1">
4
5         <record forcecreate="1" id="stock_journal" model="account.journal">
6             <field name="name">Stock Journal</field>
7             <field name="code">STJ</field>
8             <field name="type">general</field>
9             <field name="view_id" ref="account.account_journal_view"/>
10             <field name="sequence_id" ref="account.sequence_journal"/>
11             <field name="user_id" ref="base.user_root"/>
12         </record>
13
14         <!--
15         Request link
16         -->
17         <record id="req_link_tracking" model="res.request.link">
18             <field name="name">Production Lot</field>
19             <field name="object">stock.production.lot</field>
20         </record>
21         
22         <!--
23         Resource: stock.location
24         -->
25         <record id="stock_location_locations" model="stock.location">
26             <field name="name">Physical Locations</field>
27             <field name="usage">view</field>
28             <field name="icon">terp-stock</field>
29         </record>
30         <record id="stock_location_locations_partner" model="stock.location">
31             <field name="name">Partner Locations</field>
32             <field name="usage">view</field>
33             <field name="icon">terp-partner</field>
34         </record>
35         <record id="stock_location_locations_virtual" model="stock.location">
36             <field name="name">Virtual Locations</field>
37             <field name="usage">view</field>
38             <field name="icon">terp-mrp</field>
39         </record>
40         
41         <record id="location_inventory" model="stock.location">
42             <field name="name">Inventory loss</field>
43             <field name="location_id" ref="stock_location_locations_virtual"/>
44             <field name="usage">inventory</field>
45         </record>
46         <record id="location_procurement" model="stock.location">
47             <field name="name">Procurements</field>
48             <field name="location_id" ref="stock_location_locations_virtual"/>
49             <field name="usage">procurement</field>
50         </record>
51         <record id="location_production" model="stock.location">
52             <field name="name">Default Production</field>
53             <field name="location_id" ref="stock_location_locations_virtual"/>
54             <field name="usage">production</field>
55         </record>
56         <record id="stock_location_suppliers" model="stock.location">
57             <field name="name">Suppliers</field>
58             <field name="location_id" ref="stock_location_locations_partner"/>
59             <field name="usage">supplier</field>
60         </record>
61         <record id="stock_location_customers" model="stock.location">
62             <field name="name">Customers</field>
63             <field name="location_id" ref="stock_location_locations_partner"/>
64             <field name="usage">customer</field>
65         </record>
66         <record id="stock_location_company" model="stock.location">
67             <field model="res.company" name="name" search="[]" use="name"/>
68             <field name="usage">view</field>
69             <field name="location_id" ref="stock_location_locations"/>
70         </record>
71         <record id="stock_location_output" model="stock.location">
72             <field name="name">Output</field>
73             <field name="location_id" ref="stock_location_company"/>
74             <field name="usage">internal</field>
75             <field name="chained_location_type">customer</field>
76         </record>
77         <record id="stock_location_stock" model="stock.location">
78             <field name="name">Stock</field>
79             <field name="location_id" ref="stock_location_company"/>
80         </record>
81         
82         <!--
83         Properties
84         -->
85         <record forcecreate="True" id="property_stock_supplier" model="ir.property">
86             <field name="name">property_stock_supplier</field>
87             <field name="fields_id" search="[('model','=','res.partner'),('name','=','property_stock_supplier')]"/>
88             <field eval="'stock.location,'+str(stock_location_suppliers)" name="value"/>
89         </record>
90         <record forcecreate="True" id="property_stock_customer" model="ir.property">
91             <field name="name">property_stock_customer</field>
92             <field name="fields_id" search="[('model','=','res.partner'),('name','=','property_stock_customer')]"/>
93             <field eval="'stock.location,'+str(stock_location_customers)" name="value"/>
94         </record>
95         
96         <record forcecreate="True" id="property_stock_procurement" model="ir.property">
97             <field name="name">property_stock_procurement</field>
98             <field name="fields_id" search="[('model','=','product.template'),('name','=','property_stock_procurement')]"/>
99             <field eval="'stock.location,'+str(location_procurement)" name="value"/>
100         </record>
101         <record forcecreate="True" id="property_stock_inventory" model="ir.property">
102             <field name="name">property_stock_inventory</field>
103             <field name="fields_id" search="[('model','=','product.template'),('name','=','property_stock_inventory')]"/>
104             <field eval="'stock.location,'+str(location_inventory)" name="value"/>
105         </record>
106         <record forcecreate="True" id="property_stock_production" model="ir.property">
107             <field name="name">property_stock_production</field>
108             <field name="fields_id" search="[('model','=','product.template'),('name','=','property_stock_production')]"/>
109             <field eval="'stock.location,'+str(location_production)" name="value"/>
110         </record>
111         
112         <!--
113         Resource: stock.warehouse
114         -->
115         <record id="warehouse0" model="stock.warehouse">
116             <field model="res.company" name="name" search="[]" use="name"/>
117             <field name="lot_input_id" ref="stock_location_stock"/>
118             <field name="lot_stock_id" ref="stock_location_stock"/>
119             <field name="lot_output_id" ref="stock_location_output"/>
120         </record>
121     </data>
122 </openerp>