Launchpad automatic translations update.
[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         <record id="stock_location_14" model="stock.location">
38             <field name="name">Shelf 2</field>
39             <field name="location_id" ref="stock_location_stock"/>
40         </record>
41         <record id="stock_location_components" model="stock.location">
42             <field name="name">Shelf 1</field>
43             <field name="location_id" ref="stock_location_stock"/>
44         </record>
45
46
47         <!-- Resource: stock.inventory -->
48
49         <record id="stock_inventory_0" model="stock.inventory">
50             <field name="name">Starting Inventory</field>
51         </record>
52
53
54         <!-- Resource: stock.inventory.line -->
55
56         <record id="stock_inventory_line_0" model="stock.inventory.line">
57             <field name="product_id" ref="product.product_product_3"/>
58             <field name="product_uom" ref="product.product_uom_unit"/>
59             <field name="inventory_id" ref="stock_inventory_0"/>
60             <field name="product_qty">14.0</field>
61             <field name="location_id" ref="stock_location_14"/>
62         </record>
63
64         <record id="stock_inventory_line_1" model="stock.inventory.line">
65             <field name="product_id" ref="product.product_product_24"/>
66             <field name="product_uom" ref="product.product_uom_unit"/>
67             <field name="inventory_id" ref="stock_inventory_0"/>
68             <field name="product_qty">16.0</field>
69             <field name="location_id" ref="stock_location_14"/>
70         </record>
71         <record model="stock.inventory.line">
72             <field name="product_id" ref="product.product_product_25"/>
73             <field name="product_uom" ref="product.product_uom_unit"/>
74             <field name="inventory_id" ref="stock_inventory_0"/>
75             <field name="product_qty">16.0</field>
76             <field name="location_id" ref="stock_location_14"/>
77         </record>
78         <record model="stock.inventory.line">
79             <field name="product_id" ref="product.product_product_5"/>
80             <field name="product_uom" ref="product.product_uom_unit"/>
81             <field name="inventory_id" ref="stock_inventory_0"/>
82             <field name="product_qty">8.0</field>
83             <field name="location_id" ref="stock_location_14"/>
84         </record>
85         <record id="stock_inventory_line_2" model="stock.inventory.line">
86             <field name="product_id" ref="product.product_product_7"/>
87             <field name="product_uom" ref="product.product_uom_unit"/>
88             <field name="inventory_id" ref="stock_inventory_0"/>
89             <field name="product_qty">18.0</field>
90             <field name="location_id" ref="stock_location_components"/>
91         </record>
92         <record id="stock_inventory_line_3" model="stock.inventory.line">
93             <field name="product_id" ref="product.product_product_6"/>
94             <field name="product_uom" ref="product.product_uom_unit"/>
95             <field name="inventory_id" ref="stock_inventory_0"/>
96             <field name="product_qty">10.0</field>
97             <field name="location_id" ref="stock_location_components"/>
98         </record>
99         <record id="stock_inventory_line_4" model="stock.inventory.line">
100             <field name="product_id" ref="product.product_product_9"/>
101             <field name="product_uom" ref="product.product_uom_unit"/>
102             <field name="inventory_id" ref="stock_inventory_0"/>
103             <field name="product_qty">22.0</field>
104             <field name="location_id" ref="stock_location_components"/>
105         </record>
106         <record id="stock_inventory_line_5" model="stock.inventory.line">
107             <field name="product_id" ref="product.product_product_10"/>
108             <field name="product_uom" ref="product.product_uom_unit"/>
109             <field name="inventory_id" ref="stock_inventory_0"/>
110             <field name="product_qty">8.0</field>
111             <field name="location_id" ref="stock_location_components"/>
112         </record>
113         <record id="stock_inventory_line_6" model="stock.inventory.line">
114             <field name="product_id" ref="product.product_product_11"/>
115             <field name="product_uom" ref="product.product_uom_unit"/>
116             <field name="inventory_id" ref="stock_inventory_0"/>
117             <field name="product_qty">26.0</field>
118             <field name="location_id" ref="stock_location_components"/>
119         </record>
120         <record id="stock_inventory_line_7" model="stock.inventory.line">
121             <field name="product_id" ref="product.product_product_14"/>
122             <field name="product_uom" ref="product.product_uom_unit"/>
123             <field name="inventory_id" ref="stock_inventory_0"/>
124             <field name="product_qty">32.0</field>
125             <field name="location_id" ref="stock_location_components"/>
126         </record>
127         <record id="stock_inventory_line_8" model="stock.inventory.line">
128             <field name="product_id" ref="product.product_product_15"/>
129             <field name="product_uom" ref="product.product_uom_unit"/>
130             <field name="inventory_id" ref="stock_inventory_0"/>
131             <field name="product_qty">37.0</field>
132             <field name="location_id" ref="stock_location_components"/>
133         </record>
134         <record id="stock_inventory_line_9" model="stock.inventory.line">
135             <field name="product_id" ref="product.product_product_17"/>
136             <field name="product_uom" ref="product.product_uom_unit"/>
137             <field name="inventory_id" ref="stock_inventory_0"/>
138             <field name="product_qty">39.0</field>
139             <field name="location_id" ref="stock_location_components"/>
140         </record>
141         <record id="stock_inventory_line_10" model="stock.inventory.line">
142             <field name="product_id" ref="product.product_product_18"/>
143             <field name="product_uom" ref="product.product_uom_unit"/>
144             <field name="inventory_id" ref="stock_inventory_0"/>
145             <field name="product_qty">45.0</field>
146             <field name="location_id" ref="stock_location_components"/>
147         </record>
148         <record id="stock_inventory_line_11" model="stock.inventory.line">
149             <field name="product_id" ref="product.product_product_12"/>
150             <field name="product_uom" ref="product.product_uom_unit"/>
151             <field name="inventory_id" ref="stock_inventory_0"/>
152             <field name="product_qty">10.0</field>
153             <field name="location_id" ref="stock_location_components"/>
154         </record>
155         <record id="stock_inventory_line_12" model="stock.inventory.line">
156             <field name="product_id" ref="product.product_product_13"/>
157             <field name="product_uom" ref="product.product_uom_unit"/>
158             <field name="inventory_id" ref="stock_inventory_0"/>
159             <field name="product_qty">2.0</field>
160             <field name="location_id" ref="stock_location_components"/>
161         </record>
162         <record id="stock_inventory_line_13" model="stock.inventory.line">
163             <field name="product_id" ref="product.product_product_27"/>
164             <field name="product_uom" ref="product.product_uom_unit"/>
165             <field name="inventory_id" ref="stock_inventory_0"/>
166             <field name="product_qty">80.0</field>
167             <field name="location_id" ref="stock_location_components"/>
168         </record>
169
170         <function model="stock.inventory" name="action_confirm">
171             <function eval="[[('id', '=', ref('stock_inventory_0'))]]" model="stock.inventory" name="search"/>
172         </function>
173
174         <function model="stock.inventory" name="action_done">
175             <function eval="[[('id', '=', ref('stock_inventory_0'))]]" model="stock.inventory" name="search"/>
176         </function>
177
178
179         <!--  Multi Company -->
180
181         <!--        Child Company 1-->
182         <record id="res_partner_company_1" model="res.partner">
183             <field name="name">Your Company, Chicago shop</field>
184             <field eval="1" name="customer"/>
185             <field eval="1" name="supplier"/>
186             <field name="is_company">1</field>
187             <field eval="1" name="active"/>
188             <field name="street">90 Streets Avenue</field>
189             <field model="res.country" name="country_id" search="[('code','ilike','us')]"/>
190             <field model="res.country.state" name="state_id" search="[('code','ilike','il')]"/>
191             <field name="zip">60610</field>
192             <field name="city">Chicago</field>
193             <field name="email">chicago@yourcompany.com</field>
194             <field name="phone">+1 312 349 3030</field>
195             <field name="website">www.yourcompany.com</field>
196         </record>
197
198         <record id="res_partner_address_41" model="res.partner">
199             <field name="name">Steven Hamilton</field>
200             <field name="parent_id" ref="res_partner_company_1"/>
201             <field name="use_parent_address" eval="1"/>
202         </record>
203
204         <record id="res_company_1" model="res.company">
205             <field name="currency_id" ref="base.USD"/>
206             <field name="partner_id" ref="res_partner_company_1"/>
207             <field name="parent_id" ref="base.main_company"/>
208             <field name="name">Your Company, Chicago shop</field>
209         </record>
210
211         <!--        Child Company 2-->
212         <record id="res_partner_company_2" model="res.partner">
213             <field name="name">Your Company, Birmingham shop</field>
214             <field eval="1" name="customer"/>
215             <field eval="1" name="supplier"/>
216             <field eval="1" name="active"/>
217             <field name="is_company">1</field>
218             <field name="street">82-85 Academy Avenue</field>
219             <field name="city">Birmingham</field>
220             <field name="zip">B46 3AG</field>
221             <field model="res.country" name="country_id" search="[('code','ilike','gb')]"/>
222             <field name="phone">+44 121 690 4596</field>
223             <field name="email">birmingham@yourcompany.com</field>
224             <field name="website">www.yourcompany.com</field>
225         </record>
226
227         <record id="res_partner_address_40" model="res.partner">
228             <field name="name">Donald Thompson</field>
229             <field name="parent_id" ref="res_partner_company_2"/>
230             <field name="use_parent_address" eval="1"/>
231         </record>
232
233         <record id="res_company_2" model="res.company">
234             <field name="currency_id" ref="base.GBP"/>
235             <field name="partner_id" ref="res_partner_company_2"/>
236             <field name="parent_id" ref="base.main_company"/>
237             <field name="name">Your Company, Birmingham shop</field>
238         </record>
239
240         <!--TOCHECK-->
241         <record id="stock_location_shop0" model="stock.location">
242             <field model="res.partner" name="partner_id" search="[('name','=','Fabien')]"/>
243             <field name="location_id" ref="stock.stock_location_locations"/>
244             <field name="company_id" ref="res_company_1"/>
245             <field name="usage">internal</field>
246             <field name="chained_location_type">none</field>
247             <field eval="1" name="active"/>
248             <field name="name">Your Company, Chicago shop</field>
249             <field name="chained_auto_packing">manual</field>
250         </record>
251         <record id="stock_location_shop1" model="stock.location">
252             <field model="res.partner" name="partner_id" search="[('name','=','Eric')]"/>
253             <field name="company_id" ref="res_company_1"/>
254             <field name="location_id" ref="stock.stock_location_locations"/>
255             <field name="usage">internal</field>
256             <field eval="1" name="active"/>
257             <field name="name">Your Company, Birmingham shop</field>
258         </record>
259         <record id="stock_location_intermediatelocation0" model="stock.location">
260             <field name="partner_id" ref="base.main_partner"/>
261             <field name="location_id" ref="stock.stock_location_locations_partner"/>
262             <field name="usage">procurement</field>
263             <field name="name">Internal Shippings</field>
264         </record>
265
266         <record id="stock_warehouse_shop0" model="stock.warehouse">
267             <field name="lot_output_id" ref="stock.stock_location_output"/>
268             <field name="name">Chicago Warehouse</field>
269             <field name="lot_stock_id" ref="stock_location_shop0"/>
270             <field name="partner_id" ref="res_partner_address_41"/>
271             <field name="company_id" ref="res_company_1"/>
272             <field name="lot_input_id" ref="stock_location_shop0"/>
273         </record>
274         <record id="stock_warehouse_shop1" model="stock.warehouse">
275             <field name="lot_output_id" ref="stock.stock_location_output"/>
276             <field name="name">Birmingham Warehouse</field>
277             <field name="lot_stock_id" ref="stock_location_shop1"/>
278             <field name="partner_id" ref="res_partner_address_40"/>
279             <field name="company_id" ref="res_company_1"/>
280             <field name="lot_input_id" ref="stock_location_shop1"/>
281         </record>
282
283         <record forcecreate="True" id="property_stock_valuation_account_id" model="ir.property">
284             <field name="name">property_stock_valuation_account_id</field>
285             <field name="fields_id" search="[('model','=','product.category'),('name','=','property_stock_valuation_account_id')]"/>
286             <field eval="'account.account,'+str(ref('account.stk'))" model="account.account" name="value"/>
287              <field name="company_id" ref="base.main_company"/>
288         </record>
289
290     </data>
291 </openerp>
292