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

« back to all changes in this revision

Viewing changes to msf_outgoing/test/data.yml

  • Committer: Quentin THEURET
  • Date: 2011-11-30 13:31:37 UTC
  • mto: This revision was merged to the branch mainline in revision 515.
  • Revision ID: qt@tempo-consulting.fr-20111130133137-mdf2fp6hkqmwbppn
UF-647 [ADD] Added a line in Purchase Order to have information about international transport costs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
2
 
  Creating a res.partner record
3
 
4
 
  !record {model: res.partner, id: outgoing_partner_A}:
5
 
    name: outgoingA
6
 
    supplier: true
7
 
    customer: true
8
 
9
 
  Creating a res.partner.address record
10
 
11
 
  !record {model: res.partner.address, id: outgoing_address_A}:
12
 
    partner_id: outgoing_partner_A
13
 
    street: A
14
 
-
15
 
  Product A
16
 
17
 
  !record {model: product.product, id: outgoing_product_A}:
18
 
    name: ProdA
19
 
    batch_management: true
20
 
    perishable: true
21
 
    international_status: product_attributes.int_1
22
 
-
23
 
  Product B
24
 
-
25
 
  !record {model: product.product, id: outgoing_product_B}:
26
 
    name: ProdB
27
 
    batch_management: false
28
 
    perishable: true
29
 
    international_status: product_attributes.int_1
30
 
-
31
 
  Product C
32
 
-
33
 
  !record {model: product.product, id: outgoing_product_C}:
34
 
    name: ProdC
35
 
    batch_management: false
36
 
    perishable: false
37
 
    international_status: product_attributes.int_1
38
 
-
39
 
  Production Lot Ai (i stands for internal ** replaced by standard **)
40
 
-
41
 
  !record {model: stock.production.lot, id: outgoing_lot_Ai}:
42
 
    name: standard ai
43
 
    product_id: outgoing_product_A
44
 
    type: standard
45
 
    life_date: !eval datetime.today().strftime('%Y-%m-%d')
46
 
-
47
 
  Production Lot As (s stands for standard)
48
 
-
49
 
  !record {model: stock.production.lot, id: outgoing_lot_As}:
50
 
    name: A standard
51
 
    product_id: outgoing_product_A
52
 
    type: standard
53
 
    life_date: !eval datetime.today().strftime('%Y-%m-%d')
54
 
-
55
 
  Production Lot Bi (i stands for internal)
56
 
-
57
 
  !record {model: stock.production.lot, id: outgoing_lot_Bi}:
58
 
    name: B internal
59
 
    product_id: outgoing_product_B
60
 
    type: internal
61
 
    life_date: !eval datetime.today().strftime('%Y-%m-%d')
62
 
-
63
 
  Production Lot Bs (s stands for standard ** replaced by internal **)
64
 
-
65
 
  !record {model: stock.production.lot, id: outgoing_lot_Bs}:
66
 
    name: B internal2
67
 
    product_id: outgoing_product_B
68
 
    type: internal
69
 
    life_date: !eval datetime.today().strftime('%Y-%m-%d')
70
 
-
71
 
  Physical inventory
72
 
-
73
 
  !record {model: stock.inventory, id: inv1}:
74
 
    name: MSF Outgoing YML tests
75
 
    company_id: base.main_company
76
 
    date: !eval time.strftime('%Y-%m-%d %H:%M:%S')
77
 
    date_done: !eval time.strftime('%Y-%m-%d %H:%M:%S')
78
 
    inventory_line_id:
79
 
      - company_id: base.main_company
80
 
        location_id: stock.stock_location_stock
81
 
        product_id: outgoing_product_A
82
 
        prod_lot_id : outgoing_lot_Ai
83
 
        product_qty: 500
84
 
        product_uom: product.product_uom_unit
85
 
      - company_id: base.main_company
86
 
        location_id: stock.stock_location_stock
87
 
        product_id: outgoing_product_A
88
 
        prod_lot_id : outgoing_lot_As
89
 
        product_qty: 500
90
 
        product_uom: product.product_uom_unit
91
 
      - company_id: base.main_company
92
 
        location_id: stock.stock_location_stock
93
 
        product_id: outgoing_product_B
94
 
        prod_lot_id : outgoing_lot_Bi
95
 
        product_qty: 500
96
 
        product_uom: product.product_uom_unit
97
 
      - company_id: base.main_company
98
 
        location_id: stock.stock_location_stock
99
 
        product_id: outgoing_product_B
100
 
        prod_lot_id : outgoing_lot_Bs
101
 
        product_qty: 500
102
 
        product_uom: product.product_uom_unit
103
 
-
104
 
  Confirm the inventory
105
 
-
106
 
  !python {model: stock.inventory}: |
107
 
    self.action_confirm(cr,uid,[ref('inv1')])
108
 
    self.action_done(cr, uid,[ref('inv1')])