[IMP] stock : comment the packing report
[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">Shelf 2</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">Shelf 1</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 name="currency_id" ref="base.EUR"/>
202             <field name="partner_id" ref="res_partner_tinyshop0"/>
203             <field name="parent_id" ref="base.main_company"/>
204             <field eval="&quot;&quot;&quot;Shop 1&quot;&quot;&quot;" name="name"/>
205         </record>
206         <record id="res_partner_tinyshop1" model="res.partner">
207             <field eval="1" name="customer"/>
208             <field eval="0" name="supplier"/>
209             <field eval="1" name="active"/>
210             <field eval="&quot;&quot;&quot;Tiny Shop 2&quot;&quot;&quot;" name="name"/>
211         </record>
212         <record id="res_partner_address_eric0" model="res.partner.address">
213             <field eval="&quot;&quot;&quot;Eric&quot;&quot;&quot;" name="name"/>
214             <field name="partner_id" ref="res_partner_tinyshop1"/>
215             <field eval="1" name="active"/>
216         </record>
217         <record id="res_company_tinyshop0" model="res.company">
218             <field name="currency_id" ref="base.EUR"/>
219             <field eval="1.0" name="po_lead"/>
220             <field name="partner_id" ref="res_partner_tinyshop1"/>
221             <field eval="1.0" name="manufacturing_lead"/>
222             <field name="parent_id" ref="base.main_company"/>
223             <field eval="80.0" name="schedule_range"/>
224             <field eval="&quot;&quot;&quot;Shop 2&quot;&quot;&quot;" name="name"/>
225         </record>
226         <record id="stock_location_shop0" model="stock.location">
227             <field model="res.partner.address" name="address_id" search="[('name','=','Fabien')]"/>
228             <field eval="&quot;&quot;&quot;fifo&quot;&quot;&quot;" name="allocation_method"/>
229             <field name="location_id" ref="stock.stock_location_company"/>
230             <field name="company_id" ref="res_company_shop0"/>
231             <field eval="&quot;&quot;&quot;internal&quot;&quot;&quot;" name="usage"/>
232             <field eval="&quot;&quot;&quot;none&quot;&quot;&quot;" name="chained_location_type"/>
233             <field eval="1" name="active"/>
234             <field eval="&quot;&quot;&quot;Shop 1&quot;&quot;&quot;" name="name"/>
235             <field eval="&quot;&quot;&quot;manual&quot;&quot;&quot;" name="chained_auto_packing"/>
236         </record>
237         <record id="stock_location_shop1" model="stock.location">
238             <field model="res.partner.address" name="address_id" search="[('name','=','Eric')]"/>
239             <field name="company_id" ref="res_company_tinyshop0"/>
240             <field name="location_id" ref="stock.stock_location_company"/>
241             <field eval="&quot;&quot;&quot;internal&quot;&quot;&quot;" name="usage"/>
242             <field eval="1" name="active"/>
243             <field eval="&quot;&quot;&quot;Shop 2&quot;&quot;&quot;" name="name"/>
244         </record>
245         <!--<record id="res_users_shopuser0" model="res.users">
246             <field model="ir.actions.actions" name="menu_id" search="[('name','=','Menu')]"/>
247             <field eval="[(6,0,[ref('base.group_user'),ref('stock.group_stock_user')])]" name="groups_id"/>
248             <field model="res.partner.address" name="address_id" search="[('name','=','Fabien')]"/>
249             <field eval="[(6,0,[])]" name="roles_id"/>
250             <field eval="1" name="active"/>
251             <field eval="&quot;&quot;&quot;shop1&quot;&quot;&quot;" name="password"/>
252             <field eval="&quot;&quot;&quot;en_US&quot;&quot;&quot;" name="context_lang"/>
253             <field eval="&quot;&quot;&quot;Shop 1 User&quot;&quot;&quot;" name="name"/>
254             <field name="company_id" ref="res_company_shop0"/>
255             <field eval="&quot;&quot;&quot;shop1&quot;&quot;&quot;" name="login"/>
256             <field model="ir.actions.actions" name="action_id" search="[('name','=','Menu')]"/>
257         </record>
258         <record id="res_users_shopuser1" model="res.users">
259             <field model="ir.actions.actions" name="menu_id" search="[('name','=','Menu')]"/>
260             <field eval="[(6,0,[ref('base.group_user'),ref('stock.group_stock_user')])]" name="groups_id"/>
261             <field model="res.partner.address" name="address_id" search="[('name','=','Eric')]"/>
262             <field eval="&quot;&quot;&quot;shop2&quot;&quot;&quot;" name="password"/>
263             <field eval="&quot;&quot;&quot;Shop 2 User&quot;&quot;&quot;" name="name"/>
264             <field name="company_id" ref="res_company_tinyshop0"/>
265             <field eval="&quot;&quot;&quot;shop2&quot;&quot;&quot;" name="login"/>
266             <field model="ir.actions.actions" name="action_id" search="[('name','=','Menu')]"/>
267         </record>
268         --><record id="stock_location_intermediatelocation0" model="stock.location">
269             <field name="address_id" ref="base.main_address"/>
270             <field name="location_id" ref="stock.stock_location_company"/>
271             <field eval="&quot;&quot;&quot;procurement&quot;&quot;&quot;" name="usage"/>
272             <field eval="&quot;&quot;&quot;Internal Shippings&quot;&quot;&quot;" name="name"/>
273         </record>
274
275         <record id="stock_warehouse_shop0" model="stock.warehouse">
276             <field name="lot_output_id" ref="stock.stock_location_output"/>
277             <field eval="&quot;&quot;&quot;Shop 1&quot;&quot;&quot;" name="name"/>
278             <field name="lot_stock_id" ref="stock_location_shop0"/>
279             <field name="partner_address_id" ref="res_partner_address_fabien0"/>
280             <field name="company_id" ref="res_company_shop0"/>
281             <field name="lot_input_id" ref="stock_location_shop0"/>
282         </record>
283         <record id="stock_warehouse_shop1" model="stock.warehouse">
284             <field name="lot_output_id" ref="stock.stock_location_output"/>
285             <field eval="&quot;&quot;&quot;Shop 2&quot;&quot;&quot;" name="name"/>
286             <field name="lot_stock_id" ref="stock_location_shop1"/>
287             <field name="partner_address_id" ref="res_partner_address_eric0"/>
288             <field name="company_id" ref="res_company_tinyshop0"/>
289             <field name="lot_input_id" ref="stock_location_shop1"/>
290         </record>
291                 
292                 <record forcecreate="True" id="property_stock_variation" model="ir.property">
293             <field name="name">property_stock_variation</field>
294             <field name="fields_id" search="[('model','=','product.category'),('name','=','property_stock_variation')]"/>
295                         <field eval="'account.account,'+str(ref('account.a_recv'))" model="account.account" name="value"/>
296                         <field name="company_id" ref="base.main_company"/>            
297         </record>
298
299     </data>
300 </openerp>