[MERGE] merged the branch of rpa containing the fix of hr_evaluation yaml test

bzr revid: qdp-launchpad@openerp.com-20110315133205-s5h66nwwiuohdn9w
This commit is contained in:
Quentin (OpenERP)
2011-03-15 14:32:05 +01:00
@@ -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.
-