diff options
| author | Atik Agewan (OpenERP) <aag@tinyerp.com> | 2011-12-09 16:25:22 +0530 |
|---|---|---|
| committer | Atik Agewan (OpenERP) <aag@tinyerp.com> | 2011-12-09 16:25:22 +0530 |
| commit | 5d15bf071f31f9fd2ea6c7dc6d633d5c8d5ff31f (patch) | |
| tree | 5b2c7c7be554afbd2aa1a0ec44a9ca41e9d9c937 /addons | |
| parent | d4299ee9f086d46259147e0ab21438fbcf59e58f (diff) | |
[IMP]: I create Employee ==> partner
bzr revid: aag@tinyerp.com-20111209105522-1wsw36413e2ym9qk
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/hr_recruitment/test/recruitment_process.yml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/addons/hr_recruitment/test/recruitment_process.yml b/addons/hr_recruitment/test/recruitment_process.yml index 565b67168b6..010754bc55d 100644 --- a/addons/hr_recruitment/test/recruitment_process.yml +++ b/addons/hr_recruitment/test/recruitment_process.yml @@ -87,8 +87,17 @@ - !python {model: hr.applicant}: | self.case_close_with_emp(cr, uid, [ref('hr_case_programmer')]) + context.update({'active_model': 'hr.applicant', 'active_ids': [ref("hr_recruitment.hr_case_programmer")], 'active_id': ref("hr_recruitment.hr_case_programmer")}) - I check that applicant is "Hired". - !assert {model: hr.applicant, id: hr_case_programmer}: - state == 'done' +- + Now Hired Employee want to be a Partner of Company. +- + !record {model: hr.recruitment.partner.create, id: hr_recruitment_partner_id1 }: +- + !python {model: hr.recruitment.partner.create}: | + context.update({'active_model': 'hr.applicant', 'active_ids': [ref("hr_recruitment.hr_case_programmer")], 'active_id': ref("hr_recruitment.hr_case_programmer")}) + self.make_order(cr, uid, [ref("hr_recruitment_partner_id1")], context=context) |
