[IMP]: hr_recruitment:Test func of hr.recruitment.job2phonecall wizards

bzr revid: aag@tinyerp.com-20111209120825-sqkpwjubtr08w1ee
This commit is contained in:
Atik Agewan (OpenERP) 2011-12-09 17:38:25 +05:30
parent 1992ad3a3f
commit 0b1365cbfd
1 changed files with 5 additions and 1 deletions

View File

@ -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.
-