From ff80987c6998d5edb277a07a4ed10b720e39fdc8 Mon Sep 17 00:00:00 2001 From: "Richard Mathot (OpenERP)" Date: Wed, 5 Mar 2014 16:27:07 +0100 Subject: [PATCH] [FIX/REF] hr_evaluation: Propagation of variable name change bzr revid: rim@openerp.com-20140305152707-a07viqsfgnxolou4 --- addons/hr_evaluation/hr_evaluation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/hr_evaluation/hr_evaluation.py b/addons/hr_evaluation/hr_evaluation.py index 0784c912172..83690b48ee0 100644 --- a/addons/hr_evaluation/hr_evaluation.py +++ b/addons/hr_evaluation/hr_evaluation.py @@ -199,7 +199,7 @@ class hr_evaluation(osv.Model): int_id = hr_eval_inter_obj.create(cr, uid, { 'evaluation_id': evaluation.id, 'survey_id': phase.survey_id.id, - 'date_deadline': (parser.parse(datetime.now().strftime('%Y-%m-%d')) + relativedelta(months =+ 1)).strftime('%Y-%m-%d'), + 'deadline': (parser.parse(datetime.now().strftime('%Y-%m-%d')) + relativedelta(months =+ 1)).strftime('%Y-%m-%d'), 'user_id': child.user_id.id, 'user_to_review_id': evaluation.employee_id.id }, context=context) @@ -263,7 +263,7 @@ class hr_evaluation(osv.Model): if employee_id.parent_id and employee_id.parent_id.user_id: vals['message_follower_ids'] = [(4, employee_id.parent_id.user_id.partner_id.id)] if 'date' in vals: - new_vals = {'date_deadline': vals.get('date')} + new_vals = {'deadline': vals.get('date')} obj_hr_eval_iterview = self.pool.get('hr.evaluation.interview') for evalutation in self.browse(cr, uid, ids, context=context): for survey_req in evalutation.survey_request_ids: