~unifield-team/unifield-wm/us-671-homere

« back to all changes in this revision

Viewing changes to delivery_mechanism/test/delivery_mechanism-cancel-update-out.yml

  • Committer: jf
  • Date: 2012-04-17 15:29:16 UTC
  • mfrom: (631.3.7 UF_828)
  • Revision ID: jf@tempo4-20120417152916-svm6ioq8ur2bi5tu
UF-955 [DEV] Reporting (Month-end) - 2 remaining reports
lp:~unifield-team/unifield-wm/UF_955

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
  !record {model: sale.order, id: so_J}:
5
5
    company_id: base.main_company
6
6
    date_order: '2011-04-13'
7
 
    invoice_quantity: procurement
 
7
    invoice_quantity: order
8
8
    order_policy: manual
9
9
    partner_id: partner_A
10
10
    partner_invoice_id: address_A
112
112
          # the move should be canceled
113
113
          assert move.state == 'cancel', 'the out move product B should be canceled - cancel - %s'%move.state
114
114
      # check the sale order, it should be manually corrected
115
 
      assert obj.sale_id.state == 'done', 'corresponding sale order state is wrong - done - %s'%obj.sale_id.state
 
115
      assert obj.sale_id.state == 'manual', 'corresponding sale order state is wrong - manual - %s'%obj.sale_id.state
116
116
    # all qty must be empty
117
117
    assert not a_qty, 'Quantity for product A is not empty - %s'%a_qty
118
118
    assert not b_qty, 'Quantity for product B is not empty - %s'%b_qty
119
119
    
120
 
    
 
120
    
 
 
b'\\ No newline at end of file'