diff options
| author | Atik Agewan (OpenERP) <aag@tinyerp.com> | 2011-12-09 17:38:25 +0530 |
|---|---|---|
| committer | Atik Agewan (OpenERP) <aag@tinyerp.com> | 2011-12-09 17:38:25 +0530 |
| commit | 0b1365cbfd67a7dfd63cfd1a901b6a997e6d31d3 (patch) | |
| tree | 44ecdfedc91cdd9db4d8d7804abf590591b5fa71 /addons | |
| parent | 1992ad3a3f0b88cd5381a93be8210eaeea4012b9 (diff) | |
[IMP]: hr_recruitment:Test func of hr.recruitment.job2phonecall wizards
bzr revid: aag@tinyerp.com-20111209120825-sqkpwjubtr08w1ee
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/hr_recruitment/test/recruitment_process.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/addons/hr_recruitment/test/recruitment_process.yml b/addons/hr_recruitment/test/recruitment_process.yml index e1d6133d036..d87f21c5f24 100644 --- a/addons/hr_recruitment/test/recruitment_process.yml +++ b/addons/hr_recruitment/test/recruitment_process.yml @@ -34,12 +34,16 @@ I assign the Job position to the applicant - !python {model: hr.applicant}: | + context.update({'active_model': 'hr.applicant', 'active_id': ref("hr_case_programmer"), 'active_ids': [ref("hr_case_programmer")], 'survey_id': ref("survey_job_0")}) self.write(cr, uid, [ref('hr_case_programmer')], {'job_id':ref('hr.job_jr_appli')}) - I start communication with applicant, first schedule phonecall. - + !record {model: hr.recruitment.job2phonecall, id: hr_recruitment_job2phonecall_id1 }: +- !python {model: hr.recruitment.job2phonecall}: | - self.make_phonecall(cr, uid, [ref('hr_case_programmer')]) + context.update({'active_model': 'hr.applicant', 'active_id': ref("hr_case_programmer"), 'active_ids': [ref("hr_case_programmer")], 'survey_id': ref("survey_job_0")}) + self.make_phonecall(cr, uid, [ref('hr_recruitment_job2phonecall_id1')], context=context) - I schedule meeting with applicant for interview. - |
