diff options
| author | Rucha (Open ERP) <rpa@tinyerp.com> | 2012-07-11 22:37:58 +0530 |
|---|---|---|
| committer | Rucha (Open ERP) <rpa@tinyerp.com> | 2012-07-11 22:37:58 +0530 |
| commit | 3612035b2e122b9e8b048ea0a37f8e6f1a4e7bdf (patch) | |
| tree | b6cfbf4288512f71775cbabcdad0cbd30337094e /addons/purchase_double_validation | |
| parent | bed063e0df08b7195e95e8c91ed48292e210d3ea (diff) | |
[IMP]: purchase: Improved xml_id reference of purchase orders
bzr revid: rpa@tinyerp.com-20120711170758-52xt4mgjltod650b
Diffstat (limited to 'addons/purchase_double_validation')
| -rw-r--r-- | addons/purchase_double_validation/test/purchase_double_validation_demo.yml | 4 | ||||
| -rwxr-xr-x | addons/purchase_double_validation/test/purchase_double_validation_test.yml | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/addons/purchase_double_validation/test/purchase_double_validation_demo.yml b/addons/purchase_double_validation/test/purchase_double_validation_demo.yml index e0369e3fda7..7cfafcafaac 100644 --- a/addons/purchase_double_validation/test/purchase_double_validation_demo.yml +++ b/addons/purchase_double_validation/test/purchase_double_validation_demo.yml @@ -1,11 +1,11 @@ - - !record {model: purchase.order, id: order_purchase11}: + !record {model: purchase.order, id: purchase_order_11}: partner_id: base.res_partner_12 order_line: - product_id: product.product_product_6 product_qty: 10 - - !record {model: purchase.order, id: order_purchase12}: + !record {model: purchase.order, id: purchase_order_12}: partner_id: base.res_partner_22 order_line: - product_id: product.product_product_12 diff --git a/addons/purchase_double_validation/test/purchase_double_validation_test.yml b/addons/purchase_double_validation/test/purchase_double_validation_test.yml index b7172636386..fb18db6d990 100755 --- a/addons/purchase_double_validation/test/purchase_double_validation_test.yml +++ b/addons/purchase_double_validation/test/purchase_double_validation_test.yml @@ -9,28 +9,28 @@ - In order to test the flow, I confirmed the purchase order. - - !workflow {model: purchase.order, action: purchase_confirm, ref: order_purchase11} + !workflow {model: purchase.order, action: purchase_confirm, ref: purchase_order_11} - I check that the order which was initially in the draft state has transmit to confirm state for double validation it should not an Approve state. - - !assert {model: purchase.order, id: order_purchase11, severity: error, string: Purchase Order should not be in Approved state.}: + !assert {model: purchase.order, id: purchase_order_11, severity: error, string: Purchase Order should not be in Approved state.}: - state != 'approved' - I Approved the purchase order. - - !workflow {model: purchase.order, action: purchase_approve, ref: order_purchase11} + !workflow {model: purchase.order, action: purchase_approve, ref: purchase_order_11} - I check that the order which was initially in the confirmed state has transmit to approved state. - - !assert {model: purchase.order, id: order_purchase11, severity: error, string: Purchase Order should be in Approved state.}: + !assert {model: purchase.order, id: purchase_order_11, severity: error, string: Purchase Order should be in Approved state.}: - state == 'approved' - I confirmed the purchase order of amount of less than Limit amount. - - !workflow {model: purchase.order, action: purchase_confirm, ref: order_purchase12} + !workflow {model: purchase.order, action: purchase_confirm, ref: purchase_order_12} - I check that the order is in approved state. - - !assert {model: purchase.order, id: order_purchase12, severity: error, string: Purchase Order should be in Approved state.}: + !assert {model: purchase.order, id: purchase_order_12, severity: error, string: Purchase Order should be in Approved state.}: - state == 'approved' |
