From 4ef00d70beb7a4fe13438d81b2f07ddc53a11e47 Mon Sep 17 00:00:00 2001 From: "Amit Bhavsar (Open ERP)" Date: Wed, 19 Jun 2013 17:31:33 +0530 Subject: [PATCH] [Imp] Improve code at hr_recruitment. bzr revid: amb@tinyerp.com-20130619120133-hed015bgokzwt8ro --- 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 50be3acd3bf..84dae5fa574 100644 --- a/addons/hr_recruitment/hr_recruitment.py +++ b/addons/hr_recruitment/hr_recruitment.py @@ -457,7 +457,7 @@ class hr_applicant(base_stage, osv.Model): try: template = self.pool.get('ir.model.data').get_object(cr, uid, 'hr_recruitment', 'email_template_approve_applicant') except ValueError: - pass + template = False self._get_mail_template(cr, uid, ids, template, context) return res @@ -504,7 +504,7 @@ class hr_applicant(base_stage, osv.Model): try: template = self.pool.get('ir.model.data').get_object(cr, uid, 'hr_recruitment', 'email_template_refuse_applicant') except ValueError: - pass + template = False self._get_mail_template(cr, uid, ids, template, context) return res