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

« back to all changes in this revision

Viewing changes to msf_outgoing/test/data.yml

  • Committer: matthieu.choplin at msf
  • Date: 2012-08-30 07:48:00 UTC
  • mto: This revision was merged to the branch mainline in revision 1118.
  • Revision ID: matthieu.choplin@geneva.msf.org-20120830074800-l442bu42mt0yzutn
[uf-1374]- change the write and create by an _sql_constraint on the financing contract check dates

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
    name: ProdA
19
19
    batch_management: true
20
20
    perishable: true
21
 
    international_status: product_attributes.int_1
22
21
-
23
22
  Product B
24
23
-
26
25
    name: ProdB
27
26
    batch_management: false
28
27
    perishable: true
29
 
    international_status: product_attributes.int_1
30
28
-
31
29
  Product C
32
30
-
34
32
    name: ProdC
35
33
    batch_management: false
36
34
    perishable: false
37
 
    international_status: product_attributes.int_1
38
35
-
39
36
  Production Lot Ai (i stands for internal ** replaced by standard **)
40
37
-
67
64
    product_id: outgoing_product_B
68
65
    type: internal
69
66
    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')])