From d083f9de47185d6757a145a4114f1099d8e0f010 Mon Sep 17 00:00:00 2001 From: "Rucha (Open ERP)" Date: Tue, 15 Mar 2011 18:48:30 +0530 Subject: [PATCH] [FIX]: hr_evaluation: Fixed yml warnings bzr revid: rpa@tinyerp.com-20110315131830-z109ot0xbae82tbq --- .../hr_evaluation/test/test_hr_evaluation.yml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/addons/hr_evaluation/test/test_hr_evaluation.yml b/addons/hr_evaluation/test/test_hr_evaluation.yml index a7a25eb45a6..76ac0d8f512 100644 --- a/addons/hr_evaluation/test/test_hr_evaluation.yml +++ b/addons/hr_evaluation/test/test_hr_evaluation.yml @@ -106,18 +106,6 @@ plan_id: 'hr_evaluation_plan_managersplan0' progress: 0.0 state: draft -- - I create an Interview Request record -- - !record {model: hr.evaluation.interview, id: hr_evaluation_interview_0}: - date_deadline: !eval time.strftime('%Y-%m-%d') - evaluation_id: 'hr_evaluation_evaluation_0' - survey_id: hr_evaluation.survey_0 -- - I check that evaluation is in "Draft" state. -- - !assert {model: hr_evaluation.evaluation, id: hr_evaluation_evaluation_0}: - - state == 'draft' - I start the evaluation process by click on "Start Evaluation" button. - @@ -127,8 +115,9 @@ - I close this survey request by giving answer of survey question. - - !python {model: hr.evaluation.interview}: | - self.survey_req_done(cr, uid, [ref('hr_evaluation_interview_0')]) + !python {model: hr_evaluation.evaluation}: | + evaluation = self.browse(cr, uid, ref('hr_evaluation_evaluation_0')) + self.pool.get('hr.evaluation.interview').survey_req_done(cr, uid, [r.id for r in evaluation.survey_request_ids]) - I click on "Final Validation" button to finalise evaluation. -