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

« back to all changes in this revision

Viewing changes to sourcing/test/sourcing.yml

  • Committer: jf
  • Date: 2011-05-16 09:55:17 UTC
  • mfrom: (129.1.1 unifield-wm)
  • Revision ID: jf@tempo4-20110516095517-giuzv2mouka39jb8
UF-270 Advance return in a currency that is not the functional currency

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
    debit_limit: 0.0
8
8
    name: A
9
9
    supplier: true
10
 
    customer_lt: 1
11
 
    procurement_lt: 2
12
 
    transport_0_lt: 3
13
 
    transport_0: 'air'
14
10
    
15
11
16
12
  Creating a res.partner.address record
104
100
    picking_policy: direct
105
101
    pricelist_id: product.list0
106
102
    shop_id: sale.shop
107
 
    priority: normal
108
 
    categ: medical
109
103
    
110
104
    
111
105
143
137
      assert sourcing.type == 'make_to_stock', 'sourcing type wrong'
144
138
      assert sourcing.state == 'draft', 'sourcing state wrong'
145
139
      assert sourcing.state == sourcing.sale_order_line_state, 'states wrong'
146
 
      assert not sourcing.supplier.id, 'make_to_stock: sourcing has a supplier !'
147
 
      
148
 
      sourcing.write({'type':'make_to_order', 'supplier':ref("res_partner_b0"), 'po_cft':'po'})
149
 
      
150
 
      assert int(sol.supplier) == ref("res_partner_b0"), 'sol supplier is wrong after update of sourcing line (%i, %i)'%(sol.supplier, ref("product_supplierinfo_1"))
 
140
      assert int(sourcing.supplier) == ref("product_supplierinfo_0"), 'sourcing supplier wrong'
 
141
      
 
142
      sourcing.write({'type':'make_to_order', 'supplier':ref("product_supplierinfo_1")})
 
143
      
 
144
      assert int(sol.supplier) == ref("product_supplierinfo_1"), 'sol supplier is wrong after update of sourcing line (%i, %i)'%(sol.supplier, ref("product_supplierinfo_1"))
151
145
      assert sol.type == 'make_to_order', 'sol type is wrong after update of sourcing line (%s, %s)'%(sol.type, 'make_to_order')
152
146
      
153
147
    assert count == 1, 'number of sourcing line wrong (%i)'%(count)