Merge lp:~openerp-dev/openobject-addons/trunk-bug-fix-hr-yml-rpa into lp:openobject-addons

Proposed by Rucha (Open ERP)
Status: Merged
Merged at revision: 4536
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-fix-hr-yml-rpa
Merge into: lp:openobject-addons
Diff against target: 34 lines (+3/-14)
1 file modified
hr_evaluation/test/test_hr_evaluation.yml (+3/-14)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-fix-hr-yml-rpa
Reviewer Review Type Date Requested Status
qdp (OpenERP) Pending
Review via email: mp+53436@code.launchpad.net

Description of the change

Fixed warning for hr_evaluation

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hr_evaluation/test/test_hr_evaluation.yml'
2--- hr_evaluation/test/test_hr_evaluation.yml 2011-01-14 00:11:01 +0000
3+++ hr_evaluation/test/test_hr_evaluation.yml 2011-03-15 13:23:08 +0000
4@@ -107,18 +107,6 @@
5 progress: 0.0
6 state: draft
7 -
8- I create an Interview Request record
9--
10- !record {model: hr.evaluation.interview, id: hr_evaluation_interview_0}:
11- date_deadline: !eval time.strftime('%Y-%m-%d')
12- evaluation_id: 'hr_evaluation_evaluation_0'
13- survey_id: hr_evaluation.survey_0
14--
15- I check that evaluation is in "Draft" state.
16--
17- !assert {model: hr_evaluation.evaluation, id: hr_evaluation_evaluation_0}:
18- - state == 'draft'
19--
20 I start the evaluation process by click on "Start Evaluation" button.
21 -
22 !python {model: hr_evaluation.evaluation}: |
23@@ -127,8 +115,9 @@
24 -
25 I close this survey request by giving answer of survey question.
26 -
27- !python {model: hr.evaluation.interview}: |
28- self.survey_req_done(cr, uid, [ref('hr_evaluation_interview_0')])
29+ !python {model: hr_evaluation.evaluation}: |
30+ evaluation = self.browse(cr, uid, ref('hr_evaluation_evaluation_0'))
31+ self.pool.get('hr.evaluation.interview').survey_req_done(cr, uid, [r.id for r in evaluation.survey_request_ids])
32 -
33 I click on "Final Validation" button to finalise evaluation.
34 -

Subscribers

People subscribed via source and target branches

to all changes: