Merge branch 'master' of https://github.com/odoo/odoo
[odoo/odoo.git] / addons / stock / stock_demo.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data noupdate="1">
4
5         <record id="base.user_demo" model="res.users">
6             <field eval="[(4, ref('group_stock_user'))]" name="groups_id"/>
7         </record>
8
9
10         <!-- Resource: stock.location -->
11
12         <record id="stock_location_3" model="stock.location">
13             <field name="name">IT Suppliers</field>
14             <field name="location_id" ref="stock_location_suppliers"/>
15             <field name="usage">supplier</field>
16         </record>
17         <record id="stock_location_4" model="stock.location">
18             <field name="name">Big Suppliers</field>
19             <field name="location_id" ref="stock_location_3"/>
20             <field name="usage">supplier</field>
21         </record>
22         <record id="stock_location_5" model="stock.location">
23             <field name="name">Generic IT Suppliers</field>
24             <field name="location_id" ref="stock_location_3"/>
25             <field name="usage">supplier</field>
26         </record>
27         <record id="stock_location_7" model="stock.location">
28             <field name="name">European Customers</field>
29             <field name="location_id" ref="stock_location_customers"/>
30             <field name="usage">customer</field>
31         </record>
32         <record id="stock_location_8" model="stock.location">
33             <field name="name">Non European Customers</field>
34             <field name="location_id" ref="stock_location_customers"/>
35             <field name="usage">customer</field>
36         </record>
37         
38
39         <!-- Resource: stock.inventory -->
40
41         <record id="stock_inventory_0" model="stock.inventory">
42             <field name="name">Starting Inventory</field>
43         </record>
44
45
46         <!-- Resource: stock.inventory.line -->
47
48         <record id="stock_inventory_line_1" model="stock.inventory.line">
49             <field name="product_id" ref="product.product_product_24"/>
50             <field name="product_uom_id" ref="product.product_uom_unit"/>
51             <field name="inventory_id" ref="stock_inventory_0"/>
52             <field name="product_qty">16.0</field>
53             <field name="location_id" ref="stock_location_14"/>
54         </record>
55         <record id="stock_inventory_line_14" model="stock.inventory.line">
56             <field name="product_id" ref="product.product_product_25"/>
57             <field name="product_uom_id" ref="product.product_uom_unit"/>
58             <field name="inventory_id" ref="stock_inventory_0"/>
59             <field name="product_qty">16.0</field>
60             <field name="location_id" ref="stock_location_14"/>
61         </record>
62         <record id="stock_inventory_line_15" model="stock.inventory.line">
63             <field name="product_id" ref="product.product_product_5b"/>
64             <field name="product_uom_id" ref="product.product_uom_unit"/>
65             <field name="inventory_id" ref="stock_inventory_0"/>
66             <field name="product_qty">8.0</field>
67             <field name="location_id" ref="stock_location_14"/>
68         </record>
69         <record id="stock_inventory_line_2" model="stock.inventory.line">
70             <field name="product_id" ref="product.product_product_7"/>
71             <field name="product_uom_id" ref="product.product_uom_unit"/>
72             <field name="inventory_id" ref="stock_inventory_0"/>
73             <field name="product_qty">18.0</field>
74             <field name="location_id" ref="stock_location_components"/>
75         </record>
76         <record id="stock_inventory_line_3" model="stock.inventory.line">
77             <field name="product_id" ref="product.product_product_6"/>
78             <field name="product_uom_id" ref="product.product_uom_unit"/>
79             <field name="inventory_id" ref="stock_inventory_0"/>
80             <field name="product_qty">500.0</field>
81             <field name="location_id" ref="stock_location_components"/>
82         </record>
83         <record id="stock_inventory_line_4" model="stock.inventory.line">
84             <field name="product_id" ref="product.product_product_9"/>
85             <field name="product_uom_id" ref="product.product_uom_unit"/>
86             <field name="inventory_id" ref="stock_inventory_0"/>
87             <field name="product_qty">22.0</field>
88             <field name="location_id" ref="stock_location_components"/>
89         </record>
90         <record id="stock_inventory_line_5" model="stock.inventory.line">
91             <field name="product_id" ref="product.product_product_10"/>
92             <field name="product_uom_id" ref="product.product_uom_unit"/>
93             <field name="inventory_id" ref="stock_inventory_0"/>
94             <field name="product_qty">8.0</field>
95             <field name="location_id" ref="stock_location_components"/>
96         </record>
97         <record id="stock_inventory_line_6" model="stock.inventory.line">
98             <field name="product_id" ref="product.product_product_11"/>
99             <field name="product_uom_id" ref="product.product_uom_unit"/>
100             <field name="inventory_id" ref="stock_inventory_0"/>
101             <field name="product_qty">26.0</field>
102             <field name="location_id" ref="stock_location_components"/>
103         </record>
104         <record id="stock_inventory_line_7" model="stock.inventory.line">
105             <field name="product_id" ref="product.product_product_14"/>
106             <field name="product_uom_id" ref="product.product_uom_unit"/>
107             <field name="inventory_id" ref="stock_inventory_0"/>
108             <field name="product_qty">32.0</field>
109             <field name="location_id" ref="stock_location_components"/>
110         </record>
111         <record id="stock_inventory_line_8" model="stock.inventory.line">
112             <field name="product_id" ref="product.product_product_15"/>
113             <field name="product_uom_id" ref="product.product_uom_unit"/>
114             <field name="inventory_id" ref="stock_inventory_0"/>
115             <field name="product_qty">37.0</field>
116             <field name="location_id" ref="stock_location_components"/>
117         </record>
118         <record id="stock_inventory_line_9" model="stock.inventory.line">
119             <field name="product_id" ref="product.product_product_17"/>
120             <field name="product_uom_id" ref="product.product_uom_unit"/>
121             <field name="inventory_id" ref="stock_inventory_0"/>
122             <field name="product_qty">39.0</field>
123             <field name="location_id" ref="stock_location_components"/>
124         </record>
125         <record id="stock_inventory_line_10" model="stock.inventory.line">
126             <field name="product_id" ref="product.product_product_18"/>
127             <field name="product_uom_id" ref="product.product_uom_unit"/>
128             <field name="inventory_id" ref="stock_inventory_0"/>
129             <field name="product_qty">45.0</field>
130             <field name="location_id" ref="stock_location_components"/>
131         </record>
132         <record id="stock_inventory_line_11" model="stock.inventory.line">
133             <field name="product_id" ref="product.product_product_12"/>
134             <field name="product_uom_id" ref="product.product_uom_unit"/>
135             <field name="inventory_id" ref="stock_inventory_0"/>
136             <field name="product_qty">10.0</field>
137             <field name="location_id" ref="stock_location_components"/>
138         </record>
139         <record id="stock_inventory_line_12" model="stock.inventory.line">
140             <field name="product_id" ref="product.product_product_13"/>
141             <field name="product_uom_id" ref="product.product_uom_unit"/>
142             <field name="inventory_id" ref="stock_inventory_0"/>
143             <field name="product_qty">2.0</field>
144             <field name="location_id" ref="stock_location_components"/>
145         </record>
146         <record id="stock_inventory_line_13" model="stock.inventory.line">
147             <field name="product_id" ref="product.product_product_27"/>
148             <field name="product_uom_id" ref="product.product_uom_unit"/>
149             <field name="inventory_id" ref="stock_inventory_0"/>
150             <field name="product_qty">80.0</field>
151             <field name="location_id" ref="stock_location_components"/>
152         </record>
153
154         <function model="stock.inventory" name="action_done">
155             <function eval="[[('id', '=', ref('stock_inventory_0'))]]" model="stock.inventory" name="search"/>
156         </function>
157
158
159         <!--  Multi Company -->
160
161         <!--        Child Company 1-->
162         <record id="res_partner_company_1" model="res.partner">
163             <field name="name">Your Company, Chicago</field>
164             <field eval="1" name="customer"/>
165             <field eval="1" name="supplier"/>
166             <field name="is_company">1</field>
167             <field eval="1" name="active"/>
168             <field name="street">90 Streets Avenue</field>
169             <field model="res.country" name="country_id" search="[('code','ilike','us')]"/>
170             <field model="res.country.state" name="state_id" search="[('code','ilike','il')]"/>
171             <field name="zip">60610</field>
172             <field name="city">Chicago</field>
173             <field name="email">chicago@yourcompany.com</field>
174             <field name="phone">+1 312 349 3030</field>
175             <field name="website">www.yourcompany.com</field>
176         </record>
177
178         <record id="res_partner_address_41" model="res.partner">
179             <field name="name">Steven Hamilton</field>
180             <field name="parent_id" ref="res_partner_company_1"/>
181             <field name="use_parent_address" eval="1"/>
182         </record>
183
184         <record id="res_company_1" model="res.company">
185             <field name="currency_id" ref="base.USD"/>
186             <field name="partner_id" ref="res_partner_company_1"/>
187             <field name="parent_id" ref="base.main_company"/>
188             <field name="name">Your Company, Chicago</field>
189         </record>
190
191         <record id="stock_warehouse_shop0" model="stock.warehouse">
192             <field name="name">Chicago Warehouse</field>
193             <field name="partner_id" ref="res_partner_address_41"/>
194             <field name="company_id" ref="res_company_1"/>
195             <field name="code">Chic</field>
196         </record>
197
198     </data>
199 </openerp>
200