[REM] completion in Gantt chart tasks and projects, not supported by OpenERP and...
[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         <!--
48     Resource: stock.inventory
49     -->
50
51         <record id="stock_inventory_0" model="stock.inventory">
52             <field name="name">Starting Inventory</field>
53         </record>
54         <!--
55     Resource: stock.inventory.line
56     -->
57
58         <record id="stock_inventory_line_0" model="stock.inventory.line">
59             <field name="product_id" ref="product.product_product_pc1"/>
60             <field name="product_uom" ref="product.product_uom_unit"/>
61             <field name="inventory_id" ref="stock_inventory_0"/>
62             <field name="product_qty">14.0</field>
63             <field name="location_id" ref="stock_location_14"/>
64         </record>
65
66         <record id="stock_inventory_line_1" model="stock.inventory.line">
67             <field name="product_id" ref="product.product_product_24"/>
68             <field name="product_uom" ref="product.product_uom_unit"/>
69             <field name="inventory_id" ref="stock_inventory_0"/>
70             <field name="product_qty">16.0</field>
71             <field name="location_id" ref="stock_location_14"/>
72         </record>
73         <record model="stock.inventory.line">
74             <field name="product_id" ref="product.product_product_25"/>
75             <field name="product_uom" ref="product.product_uom_unit"/>
76             <field name="inventory_id" ref="stock_inventory_0"/>
77             <field name="product_qty">16.0</field>
78             <field name="location_id" ref="stock_location_14"/>
79         </record>
80         <record model="stock.inventory.line">
81             <field name="product_id" ref="product.product_product_pc3"/>
82             <field name="product_uom" ref="product.product_uom_unit"/>
83             <field name="inventory_id" ref="stock_inventory_0"/>
84             <field name="product_qty">8.0</field>
85             <field name="location_id" ref="stock_location_14"/>
86         </record>
87         <record id="stock_inventory_line_2" model="stock.inventory.line">
88             <field name="product_id" ref="product.product_product_mb1"/>
89             <field name="product_uom" ref="product.product_uom_unit"/>
90             <field name="inventory_id" ref="stock_inventory_0"/>
91             <field name="product_qty">18.0</field>
92             <field name="location_id" ref="stock_location_components"/>
93         </record>
94         <record id="stock_inventory_line_3" model="stock.inventory.line">
95             <field name="product_id" ref="product.product_product_mb2"/>
96             <field name="product_uom" ref="product.product_uom_unit"/>
97             <field name="inventory_id" ref="stock_inventory_0"/>
98             <field name="product_qty">10.0</field>
99             <field name="location_id" ref="stock_location_components"/>
100         </record>
101         <record id="stock_inventory_line_4" model="stock.inventory.line">
102             <field name="product_id" ref="product.product_product_cpu1"/>
103             <field name="product_uom" ref="product.product_uom_unit"/>
104             <field name="inventory_id" ref="stock_inventory_0"/>
105             <field name="product_qty">22.0</field>
106             <field name="location_id" ref="stock_location_components"/>
107         </record>
108         <record id="stock_inventory_line_5" model="stock.inventory.line">
109             <field name="product_id" ref="product.product_product_cpu3"/>
110             <field name="product_uom" ref="product.product_uom_unit"/>
111             <field name="inventory_id" ref="stock_inventory_0"/>
112             <field name="product_qty">8.0</field>
113             <field name="location_id" ref="stock_location_components"/>
114         </record>
115         <record id="stock_inventory_line_6" model="stock.inventory.line">
116             <field name="product_id" ref="product.product_product_hdd1"/>
117             <field name="product_uom" ref="product.product_uom_unit"/>
118             <field name="inventory_id" ref="stock_inventory_0"/>
119             <field name="product_qty">26.0</field>
120             <field name="location_id" ref="stock_location_components"/>
121         </record>
122         <record id="stock_inventory_line_7" model="stock.inventory.line">
123             <field name="product_id" ref="product.product_product_fan"/>
124             <field name="product_uom" ref="product.product_uom_unit"/>
125             <field name="inventory_id" ref="stock_inventory_0"/>
126             <field name="product_qty">32.0</field>
127             <field name="location_id" ref="stock_location_components"/>
128         </record>
129         <record id="stock_inventory_line_8" model="stock.inventory.line">
130             <field name="product_id" ref="product.product_product_fan2"/>
131             <field name="product_uom" ref="product.product_uom_unit"/>
132             <field name="inventory_id" ref="stock_inventory_0"/>
133             <field name="product_qty">37.0</field>
134             <field name="location_id" ref="stock_location_components"/>
135         </record>
136         <record id="stock_inventory_line_9" model="stock.inventory.line">
137             <field name="product_id" ref="product.product_product_ram"/>
138             <field name="product_uom" ref="product.product_uom_unit"/>
139             <field name="inventory_id" ref="stock_inventory_0"/>
140             <field name="product_qty">39.0</field>
141             <field name="location_id" ref="stock_location_components"/>
142         </record>
143         <record id="stock_inventory_line_10" model="stock.inventory.line">
144             <field name="product_id" ref="product.product_product_ram512"/>
145             <field name="product_uom" ref="product.product_uom_unit"/>
146             <field name="inventory_id" ref="stock_inventory_0"/>
147             <field name="product_qty">45.0</field>
148             <field name="location_id" ref="stock_location_components"/>
149         </record>
150         <record id="stock_inventory_line_11" model="stock.inventory.line">
151             <field name="product_id" ref="product.product_product_hdd2"/>
152             <field name="product_uom" ref="product.product_uom_unit"/>
153             <field name="inventory_id" ref="stock_inventory_0"/>
154             <field name="product_qty">10.0</field>
155             <field name="location_id" ref="stock_location_components"/>
156         </record>
157         <record id="stock_inventory_line_12" model="stock.inventory.line">
158             <field name="product_id" ref="product.product_product_hdd3"/>
159             <field name="product_uom" ref="product.product_uom_unit"/>
160             <field name="inventory_id" ref="stock_inventory_0"/>
161             <field name="product_qty">2.0</field>
162             <field name="location_id" ref="stock_location_components"/>
163         </record>
164         <record id="stock_inventory_line_13" model="stock.inventory.line">
165             <field name="product_id" ref="product.product_product_tow1"/>
166             <field name="product_uom" ref="product.product_uom_unit"/>
167             <field name="inventory_id" ref="stock_inventory_0"/>
168             <field name="product_qty">80.0</field>
169             <field name="location_id" ref="stock_location_components"/>
170         </record>
171
172         <function model="stock.inventory" name="action_confirm">
173             <function eval="[[('id', '=', ref('stock_inventory_0'))]]" model="stock.inventory" name="search"/>
174         </function>
175
176         <function model="stock.inventory" name="action_done">
177             <function eval="[[('id', '=', ref('stock_inventory_0'))]]" model="stock.inventory" name="search"/>
178         </function>
179
180
181         <!--  Multi Company -->
182
183         <record id="res_partner_tinyshop0" model="res.partner">
184             <field eval="0" name="customer"/>
185             <field eval="0" name="supplier"/>
186             <field eval="1" name="active"/>
187             <field eval="&quot;&quot;&quot;Shop 1&quot;&quot;&quot;" name="name"/>
188             <field name="address" eval="[]"/>
189         </record>
190         <record id="res_partner_address_fabien0" model="res.partner.address">
191             <field eval="&quot;&quot;&quot;Fabien&quot;&quot;&quot;" name="name"/>
192             <field name="partner_id" ref="res_partner_tinyshop0"/>
193             <field eval="1" name="active"/>
194         </record>
195         <record id="res_company_shop0" model="res.company">
196             <field name="currency_id" ref="base.EUR"/>
197             <field name="partner_id" ref="res_partner_tinyshop0"/>
198             <field name="parent_id" ref="base.main_company"/>
199             <field eval="&quot;&quot;&quot;Shop 1&quot;&quot;&quot;" name="name"/>
200         </record>
201         <record id="res_partner_tinyshop1" model="res.partner">
202             <field eval="1" name="customer"/>
203             <field eval="0" name="supplier"/>
204             <field eval="1" name="active"/>
205             <field eval="&quot;&quot;&quot;Shop 2&quot;&quot;&quot;" name="name"/>
206             <field name="address" eval="[]"/>
207         </record>
208         <record id="res_partner_address_eric0" model="res.partner.address">
209             <field eval="&quot;&quot;&quot;Eric&quot;&quot;&quot;" name="name"/>
210             <field name="partner_id" ref="res_partner_tinyshop1"/>
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 eval="&quot;&quot;&quot;Shop 2&quot;&quot;&quot;" name="name"/>
218         </record>
219         <record id="stock_location_shop0" model="stock.location">
220             <field model="res.partner.address" name="address_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 eval="&quot;&quot;&quot;internal&quot;&quot;&quot;" name="usage"/>
224             <field eval="&quot;&quot;&quot;none&quot;&quot;&quot;" name="chained_location_type"/>
225             <field eval="1" name="active"/>
226             <field eval="&quot;&quot;&quot;Shop 1&quot;&quot;&quot;" name="name"/>
227             <field eval="&quot;&quot;&quot;manual&quot;&quot;&quot;" name="chained_auto_packing"/>
228         </record>
229         <record id="stock_location_shop1" model="stock.location">
230             <field model="res.partner.address" name="address_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 eval="&quot;&quot;&quot;internal&quot;&quot;&quot;" name="usage"/>
234             <field eval="1" name="active"/>
235             <field eval="&quot;&quot;&quot;Shop 2&quot;&quot;&quot;" name="name"/>
236         </record>
237         <record id="stock_location_intermediatelocation0" model="stock.location">
238             <field name="address_id" ref="base.main_address"/>
239             <field name="location_id" ref="stock.stock_location_locations_partner"/>
240             <field eval="&quot;&quot;&quot;procurement&quot;&quot;&quot;" name="usage"/>
241             <field eval="&quot;&quot;&quot;Internal Shippings&quot;&quot;&quot;" name="name"/>
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 eval="&quot;&quot;&quot;Shop 1&quot;&quot;&quot;" name="name"/>
247             <field name="lot_stock_id" ref="stock_location_shop0"/>
248             <field name="partner_address_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_address_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     </data>
268 </openerp>