[TYPO] Set the right category for the Point Of Sale
[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">Maxtor 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_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_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         <record id="res_partner_tinyshop0" model="res.partner">
182             <field eval="0" name="customer"/>
183             <field eval="0" name="supplier"/>
184             <field name="is_company">1</field>
185             <field eval="1" name="active"/>
186             <field name="name">Shop 1</field>
187         </record>
188         <record id="res_partner_address_fabien0" model="res.partner">
189             <field name="name">Felix</field>
190             <field name="parent_id" ref="res_partner_tinyshop0"/>
191             <field name="use_parent_address" eval="1"/>
192             <field eval="1" name="active"/>
193         </record>
194         <record id="res_company_shop0" model="res.company">
195             <field name="currency_id" ref="base.EUR"/>
196             <field name="partner_id" ref="res_partner_tinyshop0"/>
197             <field name="parent_id" ref="base.main_company"/>
198             <field name="name">Shop 1</field>
199         </record>
200         <record id="res_partner_tinyshop1" model="res.partner">
201             <field eval="1" name="customer"/>
202             <field eval="0" name="supplier"/>
203             <field eval="1" name="active"/>
204             <field name="is_company">1</field>
205             <field name="name">Shop 2</field>
206         </record>
207         <record id="res_partner_address_eric0" model="res.partner">
208             <field name="name">Edwin</field>
209             <field name="parent_id" ref="res_partner_tinyshop1"/>
210             <field name="use_parent_address" eval="1"/>
211             <field eval="1" name="active"/>
212         </record>
213         <record id="res_company_tinyshop0" model="res.company">
214             <field name="currency_id" ref="base.EUR"/>
215             <field name="partner_id" ref="res_partner_tinyshop1"/>
216             <field name="parent_id" ref="base.main_company"/>
217             <field name="name">Shop 2</field>
218         </record>
219         <record id="stock_location_shop0" model="stock.location">
220             <field model="res.partner" name="partner_id" search="[('name','=','Fabien')]"/>
221             <field name="location_id" ref="stock.stock_location_locations"/>
222             <field name="company_id" ref="res_company_shop0"/>
223             <field name="usage">internal</field>
224             <field name="chained_location_type">none</field>
225             <field eval="1" name="active"/>
226             <field name="name">Shop 1</field>
227             <field name="chained_auto_packing">manual</field>
228         </record>
229         <record id="stock_location_shop1" model="stock.location">
230             <field model="res.partner" name="partner_id" search="[('name','=','Eric')]"/>
231             <field name="company_id" ref="res_company_tinyshop0"/>
232             <field name="location_id" ref="stock.stock_location_locations"/>
233             <field name="usage">internal</field>
234             <field eval="1" name="active"/>
235             <field name="name">Shop 2</field>
236         </record>
237         <record id="stock_location_intermediatelocation0" model="stock.location">
238             <field name="partner_id" ref="base.main_partner"/>
239             <field name="location_id" ref="stock.stock_location_locations_partner"/>
240             <field name="usage">procurement</field>
241             <field name="name">Internal Shippings</field>
242         </record>
243
244         <record id="stock_warehouse_shop0" model="stock.warehouse">
245             <field name="lot_output_id" ref="stock.stock_location_output"/>
246             <field name="name">Shop 1</field>
247             <field name="lot_stock_id" ref="stock_location_shop0"/>
248             <field name="partner_id" ref="res_partner_address_fabien0"/>
249             <field name="company_id" ref="res_company_shop0"/>
250             <field name="lot_input_id" ref="stock_location_shop0"/>
251         </record>
252         <record id="stock_warehouse_shop1" model="stock.warehouse">
253             <field name="lot_output_id" ref="stock.stock_location_output"/>
254             <field name="name">Shop 2</field>
255             <field name="lot_stock_id" ref="stock_location_shop1"/>
256             <field name="partner_id" ref="res_partner_address_eric0"/>
257             <field name="company_id" ref="res_company_tinyshop0"/>
258             <field name="lot_input_id" ref="stock_location_shop1"/>
259         </record>
260
261         <record forcecreate="True" id="property_stock_valuation_account_id" model="ir.property">
262             <field name="name">property_stock_valuation_account_id</field>
263             <field name="fields_id" search="[('model','=','product.category'),('name','=','property_stock_valuation_account_id')]"/>
264             <field eval="'account.account,'+str(ref('account.stk'))" model="account.account" name="value"/>
265              <field name="company_id" ref="base.main_company"/>
266         </record>
267
268     </data>
269 </openerp>