[FIX] purchase: Fixed yaml issues due to workflow changes.
bzr revid: uco@tinyerp.com-20101011094520-2z1fjpu315t82dam
This commit is contained in:
parent
fc88359548
commit
afafa2df7b
|
@ -35,12 +35,6 @@
|
|||
|
||||
<workflow model="purchase.order" ref="test_purchase_1" action="purchase_confirm" />
|
||||
|
||||
<assert model="purchase.order" id="test_purchase_1" string="Test purchase is now confirmed">
|
||||
<test expr="state">confirmed</test>
|
||||
</assert>
|
||||
|
||||
<workflow model="purchase.order" ref="test_purchase_1" action="purchase_approve" uid="base.user_root" />
|
||||
|
||||
<assert model="purchase.order" id="test_purchase_1" string="Test purchase is now in progress">
|
||||
<test expr="state">approved</test>
|
||||
</assert>
|
||||
|
|
|
@ -76,7 +76,6 @@
|
|||
import netsvc
|
||||
wf_service = netsvc.LocalService("workflow")
|
||||
wf_service.trg_validate(uid, 'purchase.order',proc_ids.purchase_id.id,'purchase_confirm', cr)
|
||||
wf_service.trg_validate(uid, 'purchase.order',proc_ids.purchase_id.id,'purchase_approve', cr)
|
||||
-
|
||||
I receive the order of the supplier ASUStek from the Incoming Shipments menu.
|
||||
-
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
I check that the order which was initially in the draft state has transit to confirm state.
|
||||
-
|
||||
!assert {model: purchase.order, id: purchase_order_po1}:
|
||||
- state == 'confirmed'
|
||||
- state == 'approved'
|
||||
-
|
||||
I check that an entry gets created in the "Lines to Invoice" of Invoice Control on the basis of purchase order line
|
||||
-
|
||||
|
@ -101,10 +101,6 @@
|
|||
account_obj = self.pool.get('account.invoice')
|
||||
ids = account_obj.search(cr, uid, [('origin', '=', pur_id1.name)])
|
||||
assert ids, _('Pending Invoice is not created!')
|
||||
-
|
||||
Supplier approve the purchase order.
|
||||
-
|
||||
!workflow {model: purchase.order, action: purchase_approve, ref: purchase_order_po1}
|
||||
-
|
||||
I check that the order which was initially in the confirmed state has transit to approved state.
|
||||
-
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
I check that the order which was initially in the draft state has transit to confirm state.
|
||||
-
|
||||
!assert {model: purchase.order, id: purchase_order_po0}:
|
||||
- state == 'confirmed'
|
||||
- state == 'approved'
|
||||
-
|
||||
I check that an entry gets created in the "Lines to Invoice" of Invoice Control on the basis of purchase order line.
|
||||
-
|
||||
|
@ -101,10 +101,6 @@
|
|||
account_obj = self.pool.get('account.invoice')
|
||||
ids = account_obj.search(cr, uid, [('origin', '=', pur_id1.name)])
|
||||
assert ids, _('Pending Invoice is not created!')
|
||||
-
|
||||
Supplier approve the purchase order.
|
||||
-
|
||||
!workflow {model: purchase.order, action: purchase_approve, ref: purchase_order_po0}
|
||||
-
|
||||
I check that the order which was initially in the confirmed state has transit to approved state.
|
||||
-
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
I check that the order which was initially in the draft state has transit to confirm state.
|
||||
-
|
||||
!assert {model: purchase.order, id: purchase_order_po2}:
|
||||
- state == 'confirmed'
|
||||
- state == 'approved'
|
||||
-
|
||||
I check that an entry gets created in the "Lines to Invoice" of Invoice Control on the basis of purchase order line.
|
||||
-
|
||||
|
@ -101,10 +101,6 @@
|
|||
account_obj = self.pool.get('account.invoice')
|
||||
ids = account_obj.search(cr, uid, [('origin', '=', pur_id1.name)])
|
||||
assert ids, _('Pending Invoice is not created!')
|
||||
-
|
||||
Supplier approve the purchase order.
|
||||
-
|
||||
!workflow {model: purchase.order, action: purchase_approve, ref: purchase_order_po2}
|
||||
-
|
||||
I check that the order which was initially in the confirmed state has transit to approved state.
|
||||
-
|
||||
|
|
Loading…
Reference in New Issue