[REF] purchase: search view of purchase order and form view of merge order wizard
[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_13" model="stock.location">
34             <field name="name">Stock Level 1</field>
35             <field name="location_id" ref="stock_location_stock"/>
36         </record>
37         <record id="stock_location_14" model="stock.location">
38             <field name="name">Finished products</field>
39             <field name="location_id" ref="stock_location_13"/>
40             <field model="account.account" name="account_id" search="[('name','=','Merchandise Type B')]"/>
41         </record>
42         <record id="stock_location_15" model="stock.location">
43             <field name="name">Sub Products</field>
44             <field name="location_id" ref="stock_location_13"/>
45         </record>
46         <record id="stock_location_workshop" model="stock.location">
47             <field name="name">Workshop</field>
48             <field name="location_id" ref="stock_location_stock"/>
49         </record>
50         <record id="stock_location_components" model="stock.location">
51             <field name="name">Components</field>
52             <field name="location_id" ref="stock_location_workshop"/>
53         </record>
54
55         <!--
56         Resource: stock.inventory
57         -->
58
59         <record id="stock_inventory_0" model="stock.inventory">
60             <field name="name">Starting Inventory</field>
61             <field name="date_done">2005-08-02 13:42:43</field>
62             <field name="state">done</field>
63         </record>
64
65         <!--
66         Resource: stock.inventory.line
67         -->
68
69         <record id="stock_inventory_line_0" model="stock.inventory.line">
70             <field name="product_id" ref="product.product_product_pc1"/>
71             <field name="product_uom" ref="product.product_uom_unit"/>
72             <field name="inventory_id" ref="stock_inventory_0"/>
73             <field name="product_qty">14.0</field>
74             <field name="location_id" ref="stock_location_14"/>
75         </record>
76
77         <record id="stock_inventory_line_1" model="stock.inventory.line">
78             <field name="product_id" ref="product.product_product_24"/>
79             <field name="product_uom" ref="product.product_uom_unit"/>
80             <field name="inventory_id" ref="stock_inventory_0"/>
81             <field name="product_qty">16.0</field>
82             <field name="location_id" ref="stock_location_14"/>
83         </record>
84         <record model="stock.inventory.line">
85             <field name="product_id" ref="product.product_product_25"/>
86             <field name="product_uom" ref="product.product_uom_unit"/>
87             <field name="inventory_id" ref="stock_inventory_0"/>
88             <field name="product_qty">16.0</field>
89             <field name="location_id" ref="stock_location_14"/>
90         </record>
91         <record model="stock.inventory.line">
92             <field name="product_id" ref="product.product_product_pc3"/>
93             <field name="product_uom" ref="product.product_uom_unit"/>
94             <field name="inventory_id" ref="stock_inventory_0"/>
95             <field name="product_qty">8.0</field>
96             <field name="location_id" ref="stock_location_14"/>
97         </record>
98         <record id="stock_inventory_line_2" model="stock.inventory.line">
99             <field name="product_id" ref="product.product_product_mb1"/>
100             <field name="product_uom" ref="product.product_uom_unit"/>
101             <field name="inventory_id" ref="stock_inventory_0"/>
102             <field name="product_qty">18.0</field>
103             <field name="location_id" ref="stock_location_components"/>
104         </record>
105         <record id="stock_inventory_line_3" model="stock.inventory.line">
106             <field name="product_id" ref="product.product_product_mb2"/>
107             <field name="product_uom" ref="product.product_uom_unit"/>
108             <field name="inventory_id" ref="stock_inventory_0"/>
109             <field name="product_qty">10.0</field>
110             <field name="location_id" ref="stock_location_components"/>
111         </record>
112         <record id="stock_inventory_line_4" model="stock.inventory.line">
113             <field name="product_id" ref="product.product_product_cpu1"/>
114             <field name="product_uom" ref="product.product_uom_unit"/>
115             <field name="inventory_id" ref="stock_inventory_0"/>
116             <field name="product_qty">22.0</field>
117             <field name="location_id" ref="stock_location_components"/>
118         </record>
119         <record id="stock_inventory_line_5" model="stock.inventory.line">
120             <field name="product_id" ref="product.product_product_cpu3"/>
121             <field name="product_uom" ref="product.product_uom_unit"/>
122             <field name="inventory_id" ref="stock_inventory_0"/>
123             <field name="product_qty">8.0</field>
124             <field name="location_id" ref="stock_location_components"/>
125         </record>
126         <record id="stock_inventory_line_6" model="stock.inventory.line">
127             <field name="product_id" ref="product.product_product_hdd1"/>
128             <field name="product_uom" ref="product.product_uom_unit"/>
129             <field name="inventory_id" ref="stock_inventory_0"/>
130             <field name="product_qty">26.0</field>
131             <field name="location_id" ref="stock_location_components"/>
132         </record>
133         <record id="stock_inventory_line_7" model="stock.inventory.line">
134             <field name="product_id" ref="product.product_product_fan"/>
135             <field name="product_uom" ref="product.product_uom_unit"/>
136             <field name="inventory_id" ref="stock_inventory_0"/>
137             <field name="product_qty">32.0</field>
138             <field name="location_id" ref="stock_location_components"/>
139         </record>
140         <record id="stock_inventory_line_8" model="stock.inventory.line">
141             <field name="product_id" ref="product.product_product_fan2"/>
142             <field name="product_uom" ref="product.product_uom_unit"/>
143             <field name="inventory_id" ref="stock_inventory_0"/>
144             <field name="product_qty">37.0</field>
145             <field name="location_id" ref="stock_location_components"/>
146         </record>
147         <record id="stock_inventory_line_9" model="stock.inventory.line">
148             <field name="product_id" ref="product.product_product_ram"/>
149             <field name="product_uom" ref="product.product_uom_unit"/>
150             <field name="inventory_id" ref="stock_inventory_0"/>
151             <field name="product_qty">39.0</field>
152             <field name="location_id" ref="stock_location_components"/>
153         </record>
154         <record id="stock_inventory_line_10" model="stock.inventory.line">
155             <field name="product_id" ref="product.product_product_ram512"/>
156             <field name="product_uom" ref="product.product_uom_unit"/>
157             <field name="inventory_id" ref="stock_inventory_0"/>
158             <field name="product_qty">45.0</field>
159             <field name="location_id" ref="stock_location_components"/>
160         </record>
161         <record id="stock_inventory_line_11" model="stock.inventory.line">
162             <field name="product_id" ref="product.product_product_hdd2"/>
163             <field name="product_uom" ref="product.product_uom_unit"/>
164             <field name="inventory_id" ref="stock_inventory_0"/>
165             <field name="product_qty">10.0</field>
166             <field name="location_id" ref="stock_location_components"/>
167         </record>
168         <record id="stock_inventory_line_12" model="stock.inventory.line">
169             <field name="product_id" ref="product.product_product_hdd3"/>
170             <field name="product_uom" ref="product.product_uom_unit"/>
171             <field name="inventory_id" ref="stock_inventory_0"/>
172             <field name="product_qty">2.0</field>
173             <field name="location_id" ref="stock_location_components"/>
174         </record>
175         <record id="stock_inventory_line_13" model="stock.inventory.line">
176             <field name="product_id" ref="product.product_product_tow1"/>
177             <field name="product_uom" ref="product.product_uom_unit"/>
178             <field name="inventory_id" ref="stock_inventory_0"/>
179             <field name="product_qty">80.0</field>
180             <field name="location_id" ref="stock_location_components"/>
181         </record>
182
183         <function model="stock.inventory" name="action_done">
184             <function eval="[[]]" model="stock.inventory" name="search"/>
185         </function>
186
187         <!--  Multi Company -->
188
189          <record id="res_partner_tinyshop0" model="res.partner">
190             <field eval="0" name="customer"/>
191             <field eval="0" name="supplier"/>
192             <field eval="1" name="active"/>
193             <field eval="&quot;&quot;&quot;Tiny Shop 1&quot;&quot;&quot;" name="name"/>
194         </record>
195         <record id="res_partner_address_fabien0" model="res.partner.address">
196             <field eval="&quot;&quot;&quot;Fabien&quot;&quot;&quot;" name="name"/>
197             <field name="partner_id" ref="res_partner_tinyshop0"/>
198             <field eval="1" name="active"/>
199         </record>
200         <record id="res_company_shop0" model="res.company">
201             <field eval="5.0" name="security_lead"/>
202             <field name="currency_id" ref="base.EUR"/>
203             <field eval="1.0" name="po_lead"/>
204             <field name="partner_id" ref="res_partner_tinyshop0"/>
205             <field eval="1.0" name="manufacturing_lead"/>
206             <field name="parent_id" ref="base.main_company"/>
207             <field eval="80.0" name="schedule_range"/>
208             <field eval="&quot;&quot;&quot;Shop 1&quot;&quot;&quot;" name="name"/>
209         </record>
210         <record id="res_partner_tinyshop1" model="res.partner">
211             <field eval="1" name="customer"/>
212             <field eval="0" name="supplier"/>
213             <field eval="1" name="active"/>
214             <field eval="&quot;&quot;&quot;Tiny Shop 2&quot;&quot;&quot;" name="name"/>
215         </record>
216         <record id="res_partner_address_eric0" model="res.partner.address">
217             <field eval="&quot;&quot;&quot;Eric&quot;&quot;&quot;" name="name"/>
218             <field name="partner_id" ref="res_partner_tinyshop1"/>
219             <field eval="1" name="active"/>
220         </record>
221         <record id="res_company_tinyshop0" model="res.company">
222             <field name="currency_id" ref="base.EUR"/>
223             <field eval="1.0" name="po_lead"/>
224             <field name="partner_id" ref="res_partner_tinyshop1"/>
225             <field eval="1.0" name="manufacturing_lead"/>
226             <field name="parent_id" ref="base.main_company"/>
227             <field eval="80.0" name="schedule_range"/>
228             <field eval="&quot;&quot;&quot;Shop 2&quot;&quot;&quot;" name="name"/>
229         </record>
230         <record id="stock_location_shop0" model="stock.location">
231             <field model="res.partner.address" name="address_id" search="[('name','=','Fabien')]"/>
232             <field eval="&quot;&quot;&quot;fifo&quot;&quot;&quot;" name="allocation_method"/>
233             <field name="location_id" ref="stock.stock_location_company"/>
234             <field name="company_id" ref="res_company_shop0"/>
235             <field eval="&quot;&quot;&quot;internal&quot;&quot;&quot;" name="usage"/>
236             <field eval="&quot;&quot;&quot;none&quot;&quot;&quot;" name="chained_location_type"/>
237             <field eval="1" name="active"/>
238             <field eval="&quot;&quot;&quot;Shop 1&quot;&quot;&quot;" name="name"/>
239             <field eval="&quot;&quot;&quot;manual&quot;&quot;&quot;" name="chained_auto_packing"/>
240         </record>
241         <record id="stock_location_shop1" model="stock.location">
242             <field model="res.partner.address" name="address_id" search="[('name','=','Eric')]"/>
243             <field name="company_id" ref="res_company_tinyshop0"/>
244             <field name="location_id" ref="stock.stock_location_company"/>
245             <field eval="&quot;&quot;&quot;internal&quot;&quot;&quot;" name="usage"/>
246             <field eval="1" name="active"/>
247             <field eval="&quot;&quot;&quot;Shop 2&quot;&quot;&quot;" name="name"/>
248         </record>
249         <!--<record id="res_users_shopuser0" model="res.users">
250             <field model="ir.actions.actions" name="menu_id" search="[('name','=','Menu')]"/>
251             <field eval="[(6,0,[ref('base.group_user'),ref('stock.group_stock_user')])]" name="groups_id"/>
252             <field model="res.partner.address" name="address_id" search="[('name','=','Fabien')]"/>
253             <field eval="[(6,0,[])]" name="roles_id"/>
254             <field eval="1" name="active"/>
255             <field eval="&quot;&quot;&quot;shop1&quot;&quot;&quot;" name="password"/>
256             <field eval="&quot;&quot;&quot;en_US&quot;&quot;&quot;" name="context_lang"/>
257             <field eval="&quot;&quot;&quot;Shop 1 User&quot;&quot;&quot;" name="name"/>
258             <field name="company_id" ref="res_company_shop0"/>
259             <field eval="&quot;&quot;&quot;shop1&quot;&quot;&quot;" name="login"/>
260             <field model="ir.actions.actions" name="action_id" search="[('name','=','Menu')]"/>
261         </record>
262         <record id="res_users_shopuser1" model="res.users">
263             <field model="ir.actions.actions" name="menu_id" search="[('name','=','Menu')]"/>
264             <field eval="[(6,0,[ref('base.group_user'),ref('stock.group_stock_user')])]" name="groups_id"/>
265             <field model="res.partner.address" name="address_id" search="[('name','=','Eric')]"/>
266             <field eval="&quot;&quot;&quot;shop2&quot;&quot;&quot;" name="password"/>
267             <field eval="&quot;&quot;&quot;Shop 2 User&quot;&quot;&quot;" name="name"/>
268             <field name="company_id" ref="res_company_tinyshop0"/>
269             <field eval="&quot;&quot;&quot;shop2&quot;&quot;&quot;" name="login"/>
270             <field model="ir.actions.actions" name="action_id" search="[('name','=','Menu')]"/>
271         </record>
272         --><record id="stock_location_intermediatelocation0" model="stock.location">
273             <field name="address_id" ref="base.main_address"/>
274             <field name="location_id" ref="stock.stock_location_company"/>
275             <field eval="&quot;&quot;&quot;procurement&quot;&quot;&quot;" name="usage"/>
276             <field eval="&quot;&quot;&quot;Internal Shippings&quot;&quot;&quot;" name="name"/>
277         </record>
278
279         <record id="stock_warehouse_shop0" model="stock.warehouse">
280             <field name="lot_output_id" ref="stock.stock_location_output"/>
281             <field eval="&quot;&quot;&quot;Shop 1&quot;&quot;&quot;" name="name"/>
282             <field name="lot_stock_id" ref="stock_location_shop0"/>
283             <field name="partner_address_id" ref="res_partner_address_fabien0"/>
284             <field name="company_id" ref="res_company_shop0"/>
285             <field name="lot_input_id" ref="stock_location_shop0"/>
286         </record>
287         <record id="stock_warehouse_shop1" model="stock.warehouse">
288             <field name="lot_output_id" ref="stock.stock_location_output"/>
289             <field eval="&quot;&quot;&quot;Shop 2&quot;&quot;&quot;" name="name"/>
290             <field name="lot_stock_id" ref="stock_location_shop1"/>
291             <field name="partner_address_id" ref="res_partner_address_eric0"/>
292             <field name="company_id" ref="res_company_tinyshop0"/>
293             <field name="lot_input_id" ref="stock_location_shop1"/>
294         </record>
295
296
297     </data>
298 </openerp>