~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to threshold_value/test/data.yml

  • Committer: jf
  • Date: 2012-06-13 12:43:21 UTC
  • mfrom: (827.5.11 uf-635)
  • Revision ID: jf@tempo4-20120613124321-2b8cwgl86gyy2tb7
UF-635 [DEV] Documents workflow: Graphic representation
lp:~unifield-team/unifield-wm/uf-635 revno 838

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
-
 
2
  In order to test the threshold value feature, I will create different products
 
3
  with different rules and test the behavior
 
4
-
 
5
  <---------------- Defining data ----------------> 
 
6
-
 
7
  <---------------- Defining supplier ---------------->
 
8
 
9
  I create a supplier
 
10
-
 
11
  !record {model: res.partner, id: supplier1}:
 
12
    name: Supplier 1
 
13
    supplier: True
 
14
-
 
15
    I create an address for Supplier 1
 
16
-
 
17
  !record {model: res.partner.address, id: addr_supplier1}:
 
18
    name: Supplier 1
 
19
    partner_id: supplier1
 
20
-
 
21
  <---------------- Defining product categories ---------------->
 
22
-
 
23
  I create cat1
 
24
-
 
25
  !record {model: product.category, id: cat1}:
 
26
    name: Categ1
 
27
-
 
28
  I create cat2
 
29
-
 
30
  !record {model: product.category, id: cat2}:
 
31
    name: Categ2
 
32
-
 
33
  <---------------- Defining products ---------------->
 
34
-
 
35
  I create product1
 
36
 
37
  !record {model: product.product, id: product1}:
 
38
    categ_id: product.cat0
 
39
    cost_method: standard
 
40
    mes_type: fixed
 
41
    name: Product 1
 
42
    price_margin: 2.0
 
43
    procure_method: make_to_stock
 
44
    property_stock_inventory: stock.location_inventory
 
45
    property_stock_procurement: stock.location_procurement
 
46
    property_stock_production: stock.location_production
 
47
    seller_delay: '1'
 
48
    standard_price: 100.0
 
49
    supply_method: buy
 
50
    type: product
 
51
    uom_id: product.product_uom_unit
 
52
    uom_po_id: product.product_uom_unit
 
53
    volume : 0.0
 
54
    warranty: 0.0
 
55
    weight: 0.0
 
56
    weight_net: 0.0
 
57
    reviewed_consumption: 45
 
58
-
 
59
  I create product2
 
60
 
61
  !record {model: product.product, id: product2}:
 
62
    categ_id: product.cat0
 
63
    cost_method: standard
 
64
    mes_type: fixed
 
65
    name: Product 2
 
66
    price_margin: 2.0
 
67
    procure_method: make_to_stock
 
68
    property_stock_inventory: stock.location_inventory
 
69
    property_stock_procurement: stock.location_procurement
 
70
    property_stock_production: stock.location_production
 
71
    seller_delay: '1'
 
72
    standard_price: 100.0
 
73
    supply_method: buy
 
74
    type: product
 
75
    uom_id: product.product_uom_unit
 
76
    uom_po_id: product.product_uom_unit
 
77
    volume : 0.0
 
78
    warranty: 0.0
 
79
    weight: 0.0
 
80
    weight_net: 0.0
 
81
    reviewed_consumption: 45
 
82
-
 
83
  I create product3
 
84
 
85
  !record {model: product.product, id: product3}:
 
86
    categ_id: product.cat0
 
87
    cost_method: standard
 
88
    mes_type: fixed
 
89
    name: Product 3
 
90
    price_margin: 2.0
 
91
    procure_method: make_to_stock
 
92
    property_stock_inventory: stock.location_inventory
 
93
    property_stock_procurement: stock.location_procurement
 
94
    property_stock_production: stock.location_production
 
95
    seller_delay: '1'
 
96
    standard_price: 100.0
 
97
    supply_method: buy
 
98
    type: product
 
99
    uom_id: product.product_uom_unit
 
100
    uom_po_id: product.product_uom_unit
 
101
    volume : 0.0
 
102
    warranty: 0.0
 
103
    weight: 0.0
 
104
    weight_net: 0.0
 
105
    reviewed_consumption: 45
 
106
-
 
107
  I create product4
 
108
 
109
  !record {model: product.product, id: product4}:
 
110
    categ_id: product.cat0
 
111
    cost_method: standard
 
112
    mes_type: fixed
 
113
    name: Product 4
 
114
    price_margin: 2.0
 
115
    procure_method: make_to_stock
 
116
    property_stock_inventory: stock.location_inventory
 
117
    property_stock_procurement: stock.location_procurement
 
118
    property_stock_production: stock.location_production
 
119
    seller_delay: '1'
 
120
    standard_price: 100.0
 
121
    supply_method: buy
 
122
    type: product
 
123
    uom_id: product.product_uom_unit
 
124
    uom_po_id: product.product_uom_unit
 
125
    volume : 0.0
 
126
    warranty: 0.0
 
127
    weight: 0.0
 
128
    weight_net: 0.0
 
129
    reviewed_consumption: 45
 
130
-
 
131
  I create product5
 
132
 
133
  !record {model: product.product, id: product5}:
 
134
    categ_id: product.cat0
 
135
    cost_method: standard
 
136
    mes_type: fixed
 
137
    name: Product 5
 
138
    price_margin: 2.0
 
139
    procure_method: make_to_stock
 
140
    property_stock_inventory: stock.location_inventory
 
141
    property_stock_procurement: stock.location_procurement
 
142
    property_stock_production: stock.location_production
 
143
    seller_delay: '1'
 
144
    standard_price: 100.0
 
145
    supply_method: buy
 
146
    type: product
 
147
    uom_id: product.product_uom_unit
 
148
    uom_po_id: product.product_uom_unit
 
149
    volume : 0.0
 
150
    warranty: 0.0
 
151
    weight: 0.0
 
152
    weight_net: 0.0
 
153
    reviewed_consumption: 45
 
154
-
 
155
  I create product6
 
156
 
157
  !record {model: product.product, id: product6}:
 
158
    categ_id: product.cat0
 
159
    cost_method: standard
 
160
    mes_type: fixed
 
161
    name: Product 6
 
162
    price_margin: 2.0
 
163
    procure_method: make_to_stock
 
164
    property_stock_inventory: stock.location_inventory
 
165
    property_stock_procurement: stock.location_procurement
 
166
    property_stock_production: stock.location_production
 
167
    seller_delay: '1'
 
168
    standard_price: 100.0
 
169
    supply_method: buy
 
170
    type: product
 
171
    uom_id: product.product_uom_unit
 
172
    uom_po_id: product.product_uom_unit
 
173
    volume : 0.0
 
174
    warranty: 0.0
 
175
    weight: 0.0
 
176
    weight_net: 0.0
 
177
    reviewed_consumption: 45
 
178
-
 
179
  I create product7
 
180
 
181
  !record {model: product.product, id: product7}:
 
182
    categ_id: product.cat0
 
183
    cost_method: standard
 
184
    mes_type: fixed
 
185
    name: Product 7
 
186
    price_margin: 2.0
 
187
    procure_method: make_to_stock
 
188
    property_stock_inventory: stock.location_inventory
 
189
    property_stock_procurement: stock.location_procurement
 
190
    property_stock_production: stock.location_production
 
191
    seller_delay: '1'
 
192
    standard_price: 100.0
 
193
    supply_method: buy
 
194
    type: product
 
195
    uom_id: product.product_uom_unit
 
196
    uom_po_id: product.product_uom_unit
 
197
    volume : 0.0
 
198
    warranty: 0.0
 
199
    weight: 0.0
 
200
    weight_net: 0.0
 
201
    reviewed_consumption: 45
 
202
-
 
203
  I create product8
 
204
 
205
  !record {model: product.product, id: product8}:
 
206
    categ_id: product.cat0
 
207
    cost_method: standard
 
208
    mes_type: fixed
 
209
    name: Product 8
 
210
    price_margin: 2.0
 
211
    procure_method: make_to_stock
 
212
    property_stock_inventory: stock.location_inventory
 
213
    property_stock_procurement: stock.location_procurement
 
214
    property_stock_production: stock.location_production
 
215
    seller_delay: '1'
 
216
    standard_price: 100.0
 
217
    supply_method: buy
 
218
    type: product
 
219
    uom_id: product.product_uom_unit
 
220
    uom_po_id: product.product_uom_unit
 
221
    volume : 0.0
 
222
    warranty: 0.0
 
223
    weight: 0.0
 
224
    weight_net: 0.0
 
225
    reviewed_consumption: 45
 
226
    seller_ids:
 
227
      - sequence: 10
 
228
        min_qty: 0.00
 
229
        name: supplier1
 
230
        delay: 30
 
231
-
 
232
  I create product9
 
233
 
234
  !record {model: product.product, id: product9}:
 
235
    categ_id: cat1
 
236
    cost_method: standard
 
237
    mes_type: fixed
 
238
    name: Product 9
 
239
    price_margin: 2.0
 
240
    procure_method: make_to_stock
 
241
    property_stock_inventory: stock.location_inventory
 
242
    property_stock_procurement: stock.location_procurement
 
243
    property_stock_production: stock.location_production
 
244
    seller_delay: '1'
 
245
    standard_price: 100.0
 
246
    supply_method: buy
 
247
    type: product
 
248
    uom_id: product.product_uom_unit
 
249
    uom_po_id: product.product_uom_unit
 
250
    volume : 0.0
 
251
    warranty: 0.0
 
252
    weight: 0.0
 
253
    weight_net: 0.0
 
254
    reviewed_consumption: 45
 
255
-
 
256
  I create product10
 
257
 
258
  !record {model: product.product, id: product10}:
 
259
    categ_id: cat1
 
260
    cost_method: standard
 
261
    mes_type: fixed
 
262
    name: Product 10
 
263
    price_margin: 2.0
 
264
    procure_method: make_to_stock
 
265
    property_stock_inventory: stock.location_inventory
 
266
    property_stock_procurement: stock.location_procurement
 
267
    property_stock_production: stock.location_production
 
268
    seller_delay: '1'
 
269
    standard_price: 100.0
 
270
    supply_method: buy
 
271
    type: product
 
272
    uom_id: product.product_uom_unit
 
273
    uom_po_id: product.product_uom_unit
 
274
    volume : 0.0
 
275
    warranty: 0.0
 
276
    weight: 0.0
 
277
    weight_net: 0.0
 
278
    reviewed_consumption: 45
 
279
-
 
280
  I create product11
 
281
 
282
  !record {model: product.product, id: product11}:
 
283
    categ_id: cat2
 
284
    cost_method: standard
 
285
    mes_type: fixed
 
286
    name: Product 11
 
287
    price_margin: 2.0
 
288
    procure_method: make_to_stock
 
289
    property_stock_inventory: stock.location_inventory
 
290
    property_stock_procurement: stock.location_procurement
 
291
    property_stock_production: stock.location_production
 
292
    seller_delay: '1'
 
293
    standard_price: 100.0
 
294
    supply_method: buy
 
295
    type: product
 
296
    uom_id: product.product_uom_unit
 
297
    uom_po_id: product.product_uom_unit
 
298
    volume : 0.0
 
299
    warranty: 0.0
 
300
    weight: 0.0
 
301
    weight_net: 0.0
 
302
    reviewed_consumption: 45
 
303
-
 
304
  I create product12
 
305
 
306
  !record {model: product.product, id: product12}:
 
307
    categ_id: cat2
 
308
    cost_method: standard
 
309
    mes_type: fixed
 
310
    name: Product 12
 
311
    price_margin: 2.0
 
312
    procure_method: make_to_stock
 
313
    property_stock_inventory: stock.location_inventory
 
314
    property_stock_procurement: stock.location_procurement
 
315
    property_stock_production: stock.location_production
 
316
    seller_delay: '1'
 
317
    standard_price: 100.0
 
318
    supply_method: buy
 
319
    type: product
 
320
    uom_id: product.product_uom_unit
 
321
    uom_po_id: product.product_uom_unit
 
322
    volume : 0.0
 
323
    warranty: 0.0
 
324
    weight: 0.0
 
325
    weight_net: 0.0
 
326
    reviewed_consumption: 45
 
327
-
 
328
  I create a stock move for product1 to have an AMC different than 0.00
 
329
-
 
330
  !record {model: stock.move, id: sm_amc1}:
 
331
    product_id: product1
 
332
    product_uom: product.product_uom_unit
 
333
    date_expected: !eval time.strftime('%Y-%m-%d %H:%M:%S')
 
334
    date: !eval time.strftime('%Y-%m-%d %H:%M:%S')
 
335
    product_qty: 150.00
 
336
    location_id: stock.stock_location_stock
 
337
    location_dest_id: stock.stock_location_customers
 
338
    reason_type_id: reason_types_moves.reason_type_deliver_partner
 
339
    type: out
 
340
    name: AMC for product 1
 
341
-
 
342
 I confirm the stock move
 
343
-
 
344
  !python {model: stock.move}: |
 
345
    self.action_confirm(cr, uid, [ref('sm_amc1')], context=context)
 
346
    self.action_done(cr, uid, [ref('sm_amc1')], context=context)
 
347
-
 
348
  I create a stock move for product2 to have an AMC different than 0.00
 
349
-
 
350
  !record {model: stock.move, id: sm_amc2}:
 
351
    product_id: product2
 
352
    product_uom: product.product_uom_unit
 
353
    date_expected: !eval time.strftime('%Y-%m-%d %H:%M:%S')
 
354
    date: !eval time.strftime('%Y-%m-%d %H:%M:%S')
 
355
    product_qty: 150.00
 
356
    location_id: stock.stock_location_stock
 
357
    location_dest_id: stock.stock_location_customers
 
358
    reason_type_id: reason_types_moves.reason_type_deliver_partner
 
359
    type: out
 
360
    name: AMC for product 2
 
361
-
 
362
 I confirm the stock move
 
363
-
 
364
  !python {model: stock.move}: |
 
365
    self.action_confirm(cr, uid, [ref('sm_amc2')], context=context)
 
366
    self.action_done(cr, uid, [ref('sm_amc2')], context=context)
 
367
-
 
368
  I create a stock move for product3 to have an AMC different than 0.00
 
369
-
 
370
  !record {model: stock.move, id: sm_amc3}:
 
371
    product_id: product3
 
372
    product_uom: product.product_uom_unit
 
373
    date_expected: !eval time.strftime('%Y-%m-%d %H:%M:%S')
 
374
    date: !eval time.strftime('%Y-%m-%d %H:%M:%S')
 
375
    product_qty: 150.00
 
376
    location_id: stock.stock_location_stock
 
377
    location_dest_id: stock.stock_location_customers
 
378
    reason_type_id: reason_types_moves.reason_type_deliver_partner
 
379
    type: out
 
380
    name: AMC for product 3
 
381
-
 
382
 I confirm the stock move
 
383
-
 
384
  !python {model: stock.move}: |
 
385
    self.action_confirm(cr, uid, [ref('sm_amc3')], context=context)
 
386
    self.action_done(cr, uid, [ref('sm_amc3')], context=context)
 
387
-
 
388
  I create a stock move for product4 to have an AMC different than 0.00
 
389
-
 
390
  !record {model: stock.move, id: sm_amc4}:
 
391
    product_id: product4
 
392
    product_uom: product.product_uom_unit
 
393
    date_expected: !eval time.strftime('%Y-%m-%d %H:%M:%S')
 
394
    date: !eval time.strftime('%Y-%m-%d %H:%M:%S')
 
395
    product_qty: 150.00
 
396
    location_id: stock.stock_location_stock
 
397
    location_dest_id: stock.stock_location_customers
 
398
    reason_type_id: reason_types_moves.reason_type_deliver_partner
 
399
    type: out
 
400
    name: AMC for product 4
 
401
-
 
402
 I confirm the stock move
 
403
-
 
404
  !python {model: stock.move}: |
 
405
    self.action_confirm(cr, uid, [ref('sm_amc4')], context=context)
 
406
    self.action_done(cr, uid, [ref('sm_amc4')], context=context)
 
407
-
 
408
  I create a stock move for product5 to have an AMC different than 0.00
 
409
-
 
410
  !record {model: stock.move, id: sm_amc5}:
 
411
    product_id: product5
 
412
    product_uom: product.product_uom_unit
 
413
    date_expected: !eval time.strftime('%Y-%m-%d %H:%M:%S')
 
414
    date: !eval time.strftime('%Y-%m-%d %H:%M:%S')
 
415
    product_qty: 150.00
 
416
    location_id: stock.stock_location_stock
 
417
    location_dest_id: stock.stock_location_customers
 
418
    reason_type_id: reason_types_moves.reason_type_deliver_partner
 
419
    type: out
 
420
    name: AMC for product 5
 
421
-
 
422
 I confirm the stock move
 
423
-
 
424
  !python {model: stock.move}: |
 
425
    self.action_confirm(cr, uid, [ref('sm_amc5')], context=context)
 
426
    self.action_done(cr, uid, [ref('sm_amc5')], context=context)
 
427
-
 
428
  I create a stock move for product6 to have an AMC different than 0.00
 
429
-
 
430
  !record {model: stock.move, id: sm_amc6}:
 
431
    product_id: product6
 
432
    product_uom: product.product_uom_unit
 
433
    date_expected: !eval time.strftime('%Y-%m-%d %H:%M:%S')
 
434
    date: !eval time.strftime('%Y-%m-%d %H:%M:%S')
 
435
    product_qty: 150.00
 
436
    location_id: stock.stock_location_stock
 
437
    location_dest_id: stock.stock_location_customers
 
438
    reason_type_id: reason_types_moves.reason_type_deliver_partner
 
439
    type: out
 
440
    name: AMC for product 6
 
441
-
 
442
 I confirm the stock move
 
443
-
 
444
  !python {model: stock.move}: |
 
445
    self.action_confirm(cr, uid, [ref('sm_amc6')], context=context)
 
446
    self.action_done(cr, uid, [ref('sm_amc6')], context=context)
 
447
-
 
448
  I create a stock move for product7 to have an AMC different than 0.00
 
449
-
 
450
  !record {model: stock.move, id: sm_amc7}:
 
451
    product_id: product7
 
452
    product_uom: product.product_uom_unit
 
453
    date_expected: !eval time.strftime('%Y-%m-%d %H:%M:%S')
 
454
    date: !eval time.strftime('%Y-%m-%d %H:%M:%S')
 
455
    product_qty: 150.00
 
456
    location_id: stock.stock_location_stock
 
457
    location_dest_id: stock.stock_location_customers
 
458
    reason_type_id: reason_types_moves.reason_type_deliver_partner
 
459
    type: out
 
460
    name: AMC for product 7
 
461
-
 
462
 I confirm the stock move
 
463
-
 
464
  !python {model: stock.move}: |
 
465
    self.action_confirm(cr, uid, [ref('sm_amc7')], context=context)
 
466
    self.action_done(cr, uid, [ref('sm_amc7')], context=context)
 
467
-
 
468
  I create a stock move for product8 to have an AMC different than 0.00
 
469
-
 
470
  !record {model: stock.move, id: sm_amc8}:
 
471
    product_id: product8
 
472
    product_uom: product.product_uom_unit
 
473
    date_expected: !eval time.strftime('%Y-%m-%d %H:%M:%S')
 
474
    date: !eval time.strftime('%Y-%m-%d %H:%M:%S')
 
475
    product_qty: 150.00
 
476
    location_id: stock.stock_location_stock
 
477
    location_dest_id: stock.stock_location_customers
 
478
    reason_type_id: reason_types_moves.reason_type_deliver_partner
 
479
    type: out
 
480
    name: AMC for product 8
 
481
-
 
482
 I confirm the stock move
 
483
-
 
484
  !python {model: stock.move}: |
 
485
    self.action_confirm(cr, uid, [ref('sm_amc8')], context=context)
 
486
    self.action_done(cr, uid, [ref('sm_amc8')], context=context)
 
487
-
 
488
  I create a stock move for product9 to have an AMC different than 0.00
 
489
-
 
490
  !record {model: stock.move, id: sm_amc9}:
 
491
    product_id: product9
 
492
    product_uom: product.product_uom_unit
 
493
    date_expected: !eval time.strftime('%Y-%m-%d %H:%M:%S')
 
494
    date: !eval time.strftime('%Y-%m-%d %H:%M:%S')
 
495
    product_qty: 150.00
 
496
    location_id: stock.stock_location_stock
 
497
    location_dest_id: stock.stock_location_customers
 
498
    reason_type_id: reason_types_moves.reason_type_deliver_partner
 
499
    type: out
 
500
    name: AMC for product 9
 
501
-
 
502
 I confirm the stock move
 
503
-
 
504
  !python {model: stock.move}: |
 
505
    self.action_confirm(cr, uid, [ref('sm_amc9')], context=context)
 
506
    self.action_done(cr, uid, [ref('sm_amc9')], context=context)
 
507
-
 
508
  I create a stock move for product10 to have an AMC different than 0.00
 
509
-
 
510
  !record {model: stock.move, id: sm_amc10}:
 
511
    product_id: product10
 
512
    product_uom: product.product_uom_unit
 
513
    date_expected: !eval time.strftime('%Y-%m-%d %H:%M:%S')
 
514
    date: !eval time.strftime('%Y-%m-%d %H:%M:%S')
 
515
    product_qty: 150.00
 
516
    location_id: stock.stock_location_stock
 
517
    location_dest_id: stock.stock_location_customers
 
518
    reason_type_id: reason_types_moves.reason_type_deliver_partner
 
519
    type: out
 
520
    name: AMC for product 10
 
521
-
 
522
 I confirm the stock move
 
523
-
 
524
  !python {model: stock.move}: |
 
525
    self.action_confirm(cr, uid, [ref('sm_amc10')], context=context)
 
526
    self.action_done(cr, uid, [ref('sm_amc10')], context=context)
 
527
-
 
528
  I create a stock move for product11 to have an AMC different than 0.00
 
529
-
 
530
  !record {model: stock.move, id: sm_amc11}:
 
531
    product_id: product11
 
532
    product_uom: product.product_uom_unit
 
533
    date_expected: !eval time.strftime('%Y-%m-%d %H:%M:%S')
 
534
    date: !eval time.strftime('%Y-%m-%d %H:%M:%S')
 
535
    product_qty: 150.00
 
536
    location_id: stock.stock_location_stock
 
537
    location_dest_id: stock.stock_location_customers
 
538
    reason_type_id: reason_types_moves.reason_type_deliver_partner
 
539
    type: out
 
540
    name: AMC for product 11
 
541
-
 
542
 I confirm the stock move
 
543
-
 
544
  !python {model: stock.move}: |
 
545
    self.action_confirm(cr, uid, [ref('sm_amc11')], context=context)
 
546
    self.action_done(cr, uid, [ref('sm_amc11')], context=context)
 
547
-
 
548
  I create a stock move for product12 to have an AMC different than 0.00
 
549
-
 
550
  !record {model: stock.move, id: sm_amc12}:
 
551
    product_id: product12
 
552
    product_uom: product.product_uom_unit
 
553
    date_expected: !eval time.strftime('%Y-%m-%d %H:%M:%S')
 
554
    date: !eval time.strftime('%Y-%m-%d %H:%M:%S')
 
555
    product_qty: 150.00
 
556
    location_id: stock.stock_location_stock
 
557
    location_dest_id: stock.stock_location_customers
 
558
    reason_type_id: reason_types_moves.reason_type_deliver_partner
 
559
    type: out
 
560
    name: AMC for product 12
 
561
-
 
562
 I confirm the stock move
 
563
-
 
564
  !python {model: stock.move}: |
 
565
    self.action_confirm(cr, uid, [ref('sm_amc12')], context=context)
 
566
    self.action_done(cr, uid, [ref('sm_amc12')], context=context)
 
567
-
 
568
  I create an inventory
 
569
-
 
570
  !record {model: stock.inventory, id: inv1}:
 
571
    company_id: base.main_company
 
572
    date: !eval time.strftime('%Y-%m-%d %H:%M:%S')
 
573
    date_done: !eval time.strftime('%Y-%m-%d %H:%M:%S')
 
574
    inventory_line_id:
 
575
      - company_id: base.main_company
 
576
        location_id: stock.stock_location_stock
 
577
        product_id: product1
 
578
        product_qty: 100.0
 
579
        product_uom: product.product_uom_unit
 
580
      - company_id: base.main_company
 
581
        location_id: stock.stock_location_stock
 
582
        product_id: product2
 
583
        product_qty: 170.0
 
584
        product_uom: product.product_uom_unit
 
585
      - company_id: base.main_company
 
586
        location_id: stock.stock_location_stock
 
587
        product_id: product3
 
588
        product_qty: 300.0
 
589
        product_uom: product.product_uom_unit
 
590
      - company_id: base.main_company
 
591
        location_id: stock.stock_location_stock
 
592
        product_id: product4
 
593
        product_qty: 200.00
 
594
        product_uom: product.product_uom_unit
 
595
      - company_id: base.main_company
 
596
        location_id: stock.stock_location_stock
 
597
        product_id: product5
 
598
        product_qty: 100.00
 
599
        product_uom: product.product_uom_unit
 
600
      - company_id: base.main_company
 
601
        location_id: stock.stock_location_stock
 
602
        product_id: product6
 
603
        product_qty: 200.0
 
604
        product_uom: product.product_uom_unit
 
605
      - company_id: base.main_company
 
606
        location_id: stock.stock_location_stock
 
607
        product_id: product7
 
608
        product_qty: 300.0
 
609
        product_uom: product.product_uom_unit
 
610
      - company_id: base.main_company
 
611
        location_id: stock.stock_location_stock
 
612
        product_id: product8
 
613
        product_qty: 100.0
 
614
        product_uom: product.product_uom_unit
 
615
      - company_id: base.main_company
 
616
        location_id: stock.stock_location_stock
 
617
        product_id: product9
 
618
        product_qty: 100.0
 
619
        product_uom: product.product_uom_unit
 
620
      - company_id: base.main_company
 
621
        location_id: stock.stock_location_stock
 
622
        product_id: product10
 
623
        product_qty: 300.0
 
624
        product_uom: product.product_uom_unit
 
625
      - company_id: base.main_company
 
626
        location_id: stock.stock_location_stock
 
627
        product_id: product11
 
628
        product_qty: 100.0
 
629
        product_uom: product.product_uom_unit
 
630
      - company_id: base.main_company
 
631
        location_id: stock.stock_location_stock
 
632
        product_id: product12
 
633
        product_qty: 300.0
 
634
        product_uom: product.product_uom_unit
 
635
    name: Physical inventory
 
636
    state: draft
 
637
-
 
638
  I confirm the Inventory
 
639
-
 
640
  !python {model: stock.inventory}: |
 
641
   self.action_confirm(cr,uid,[ref('inv1')])
 
642
   self.action_done(cr,uid,[ref('inv1')])