From ac7a461f4ef317e648b9aec9533d46f9f7883684 Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Tue, 11 May 2010 20:15:06 +0530 Subject: [PATCH] [IMP]: Improve the yml purchase_requisition bzr revid: sbh@tinyerp.com-20100511144506-tigiwtgb1vz6109v --- .../test/purchase_requisition_exclusive.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/purchase_requisition/test/purchase_requisition_exclusive.yml b/addons/purchase_requisition/test/purchase_requisition_exclusive.yml index c6efc38dc60..cc59649577e 100644 --- a/addons/purchase_requisition/test/purchase_requisition_exclusive.yml +++ b/addons/purchase_requisition/test/purchase_requisition_exclusive.yml @@ -99,7 +99,7 @@ - !python {model: purchase.order}: | partner_id=self.pool.get('res.partner').search(cr,uid,[('name','=','ASUStek')])[0] - purchase_id= self.search(cr, uid, [('partner_id','=','partner_id)])[0] + purchase_id= self.search(cr, uid, [('partner_id','=',partner_id)])[0] import netsvc wf_service = netsvc.LocalService("workflow") if purchase_id: @@ -110,5 +110,6 @@ - !python {model: purchase.order}: | partner_id=self.pool.get('res.partner').search(cr,uid,[('name','=','Distrib PC')])[0] + purchase_id= self.search(cr, uid, [('partner_id','=',partner_id)])[0] state=self.browse(cr,uid,purchase_id).state assert (state=='cancel') \ No newline at end of file