[FIX] account: fixed yml issue of account cash statement
[odoo/odoo.git] / addons / stock / stock_demo.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data noupdate="1">
4
5         <!--
6     Resource: stock.location
7     -->
8         <record id="stock_location_3" model="stock.location">
9             <field name="name">IT Suppliers</field>
10             <field name="location_id" ref="stock_location_suppliers"/>
11             <field name="usage">supplier</field>
12         </record>
13         <record id="stock_location_4" model="stock.location">
14             <field name="name">Maxtor Suppliers</field>
15             <field name="location_id" ref="stock_location_3"/>
16             <field name="usage">supplier</field>
17         </record>
18         <record id="stock_location_5" model="stock.location">
19             <field name="name">Generic IT Suppliers</field>
20             <field name="location_id" ref="stock_location_3"/>
21             <field name="usage">supplier</field>
22         </record>
23         <record id="stock_location_7" model="stock.location">
24             <field name="name">European Customers</field>
25             <field name="location_id" ref="stock_location_customers"/>
26             <field name="usage">customer</field>
27         </record>
28         <record id="stock_location_8" model="stock.location">
29             <field name="name">Non European Customers</field>
30             <field name="location_id" ref="stock_location_customers"/>
31             <field name="usage">customer</field>
32         </record>
33         <record id="stock_location_14" model="stock.location">
34             <field name="name">Shelf 2</field>
35             <field name="location_id" ref="stock_location_stock"/>
36         </record>
37         <record id="stock_location_components" model="stock.location">
38             <field name="name">Shelf 1</field>
39             <field name="location_id" ref="stock_location_stock"/>
40         </record>
41
42         <!--
43     Resource: stock.inventory
44     -->
45
46         <record id="stock_inventory_0" model="stock.inventory">
47             <field name="name">Starting Inventory</field>
48             <field name="date_done">2005-08-02 13:42:43</field>
49             <field name="state">done</field>
50         </record>
51
52         <!--
53     Resource: stock.inventory.line
54     -->
55
56         <record id="stock_inventory_line_0" model="stock.inventory.line">
57             <field name="product_id" ref="product.product_product_pc1"/>
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_pc3"/>
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_mb1"/>
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_mb2"/>
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_cpu1"/>
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_cpu3"/>
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_hdd1"/>
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_fan"/>
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_fan2"/>
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_ram"/>
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_ram512"/>
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_hdd2"/>
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_hdd3"/>
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_tow1"/>
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_done">
171             <function eval="[[]]" model="stock.inventory" name="search"/>
172         </function>
173
174         <!--  Multi Company -->
175
176         <record id="res_partner_tinyshop0" model="res.partner">
177             <field eval="0" name="customer"/>
178             <field eval="0" name="supplier"/>
179             <field eval="1" name="active"/>
180             <field eval="&quot;&quot;&quot;Shop 1&quot;&quot;&quot;" name="name"/>
181         </record>
182         <record id="res_partner_address_fabien0" model="res.partner.address">
183             <field eval="&quot;&quot;&quot;Fabien&quot;&quot;&quot;" name="name"/>
184             <field name="partner_id" ref="res_partner_tinyshop0"/>
185             <field eval="1" name="active"/>
186         </record>
187         <record id="res_company_shop0" model="res.company">
188             <field name="currency_id" ref="base.EUR"/>
189             <field name="partner_id" ref="res_partner_tinyshop0"/>
190             <field name="parent_id" ref="base.main_company"/>
191             <field eval="&quot;&quot;&quot;Shop 1&quot;&quot;&quot;" name="name"/>
192         </record>
193         <record id="res_partner_tinyshop1" model="res.partner">
194             <field eval="1" name="customer"/>
195             <field eval="0" name="supplier"/>
196             <field eval="1" name="active"/>
197             <field eval="&quot;&quot;&quot;Shop 2&quot;&quot;&quot;" name="name"/>
198         </record>
199         <record id="res_partner_address_eric0" model="res.partner.address">
200             <field eval="&quot;&quot;&quot;Eric&quot;&quot;&quot;" name="name"/>
201             <field name="partner_id" ref="res_partner_tinyshop1"/>
202             <field eval="1" name="active"/>
203         </record>
204         <record id="res_company_tinyshop0" model="res.company">
205             <field name="currency_id" ref="base.EUR"/>
206             <field eval="1.0" name="po_lead"/>
207             <field name="partner_id" ref="res_partner_tinyshop1"/>
208             <field name="parent_id" ref="base.main_company"/>
209             <field eval="80.0" name="schedule_range"/>
210             <field eval="&quot;&quot;&quot;Shop 2&quot;&quot;&quot;" name="name"/>
211         </record>
212         <record id="stock_location_shop0" model="stock.location">
213             <field model="res.partner.address" name="address_id" search="[('name','=','Fabien')]"/>
214             <field name="location_id" ref="stock.stock_location_locations"/>
215             <field name="company_id" ref="res_company_shop0"/>
216             <field eval="&quot;&quot;&quot;internal&quot;&quot;&quot;" name="usage"/>
217             <field eval="&quot;&quot;&quot;none&quot;&quot;&quot;" name="chained_location_type"/>
218             <field eval="1" name="active"/>
219             <field eval="&quot;&quot;&quot;Shop 1&quot;&quot;&quot;" name="name"/>
220             <field eval="&quot;&quot;&quot;manual&quot;&quot;&quot;" name="chained_auto_packing"/>
221         </record>
222         <record id="stock_location_shop1" model="stock.location">
223             <field model="res.partner.address" name="address_id" search="[('name','=','Eric')]"/>
224             <field name="company_id" ref="res_company_tinyshop0"/>
225             <field name="location_id" ref="stock.stock_location_locations"/>
226             <field eval="&quot;&quot;&quot;internal&quot;&quot;&quot;" name="usage"/>
227             <field eval="1" name="active"/>
228             <field eval="&quot;&quot;&quot;Shop 2&quot;&quot;&quot;" name="name"/>
229         </record>
230         <record id="stock_location_intermediatelocation0" model="stock.location">
231             <field name="address_id" ref="base.main_address"/>
232             <field name="location_id" ref="stock.stock_location_locations_partner"/>
233             <field eval="&quot;&quot;&quot;procurement&quot;&quot;&quot;" name="usage"/>
234             <field eval="&quot;&quot;&quot;Internal Shippings&quot;&quot;&quot;" name="name"/>
235         </record>
236
237         <record id="stock_warehouse_shop0" model="stock.warehouse">
238             <field name="lot_output_id" ref="stock.stock_location_output"/>
239             <field eval="&quot;&quot;&quot;Shop 1&quot;&quot;&quot;" name="name"/>
240             <field name="lot_stock_id" ref="stock_location_shop0"/>
241             <field name="partner_address_id" ref="res_partner_address_fabien0"/>
242             <field name="company_id" ref="res_company_shop0"/>
243             <field name="lot_input_id" ref="stock_location_shop0"/>
244         </record>
245         <record id="stock_warehouse_shop1" model="stock.warehouse">
246             <field name="lot_output_id" ref="stock.stock_location_output"/>
247             <field name="name">Shop 2</field>
248             <field name="lot_stock_id" ref="stock_location_shop1"/>
249             <field name="partner_address_id" ref="res_partner_address_eric0"/>
250             <field name="company_id" ref="res_company_tinyshop0"/>
251             <field name="lot_input_id" ref="stock_location_shop1"/>
252         </record>
253
254         <record forcecreate="True" id="property_stock_variation" model="ir.property">
255             <field name="name">property_stock_variation</field>
256             <field name="fields_id" search="[('model','=','product.category'),('name','=','property_stock_variation')]"/>
257             <field eval="'account.account,'+str(ref('account.a_recv'))" model="account.account" name="value"/>
258              <field name="company_id" ref="base.main_company"/>
259         </record>
260         <record id="stock_picking_1" model="stock.picking">
261             <field name="name">PACKO1</field>
262             <field name="type">out</field>
263             <field name="move_type">direct</field>
264             <field name="invoice_state">2binvoiced</field>
265             <field name="address_id"  ref="res_partner_address_fabien0"/>
266             <field name="company_id" ref="base.main_company"/>
267         </record>
268     </data>
269 </openerp>