From 2ae7717edbb5ff9ec78a984da3623be798461e78 Mon Sep 17 00:00:00 2001 From: "Dharti Ratani (Open ERP)" Date: Fri, 15 Mar 2013 18:07:24 +0530 Subject: [PATCH] [IMP]Changed the partner_id for manager bzr revid: dhr@tinyerp.com-20130315123724-hv05rkub1agooz6h --- addons/hr_recruitment/hr_recruitment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/hr_recruitment/hr_recruitment.py b/addons/hr_recruitment/hr_recruitment.py index c27f97c27df..38ae03fb2bf 100644 --- a/addons/hr_recruitment/hr_recruitment.py +++ b/addons/hr_recruitment/hr_recruitment.py @@ -339,8 +339,8 @@ class hr_applicant(base_stage, osv.Model): applicant_ids = [] if applicant.partner_id: applicant_ids.append(applicant.partner_id.id) - if applicant.department_id and applicant.department_id.manager_id and applicant.department_id.manager_id.address_id: - applicant_ids.append(applicant.department_id.manager_id.address_id.id) + if applicant.department_id and applicant.department_id.manager_id and applicant.department_id.manager_id.user_id and applicant.department_id.manager_id.user_id.partner_id: + applicant_ids.append(applicant.department_id.manager_id.user_id.partner_id.id) category = self.pool.get('ir.model.data').get_object(cr, uid, 'hr_recruitment', 'categ_meet_interview', context) res = self.pool.get('ir.actions.act_window').for_xml_id(cr, uid, 'base_calendar', 'action_crm_meeting', context) res['context'] = {