From 220f75daec3adf772b6a49e1b293df09260077bb Mon Sep 17 00:00:00 2001 From: "Hardik Ansodariy (OpenERP)" Date: Thu, 12 Jan 2012 17:32:29 +0530 Subject: [PATCH] [IMP] Fix the issue of warning bzr revid: han@tinyerp.com-20120112120229-kyu83vrute2wykag --- addons/survey/wizard/survey_selection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/survey/wizard/survey_selection.py b/addons/survey/wizard/survey_selection.py index 82c9fd385ed..7683e85ec43 100644 --- a/addons/survey/wizard/survey_selection.py +++ b/addons/survey/wizard/survey_selection.py @@ -63,7 +63,7 @@ class survey_name_wiz(osv.osv_memory): res = cr.fetchone()[0] sur_rec = survey_obj.browse(cr,uid,survey_id,context=context) if sur_rec.response_user and res >= sur_rec.response_user: - raise osv.except_osv(_('Warning !'),_("You can not give response for this survey more than %s times") % (user_limit)) + raise osv.except_osv(_('Warning !'),_("You can not give response for this survey more than %s times") % (sur_rec)) if sur_rec.max_response_limit and sur_rec.max_response_limit <= sur_rec.tot_start_survey: raise osv.except_osv(_('Warning !'),_("You can not give more response. Please contact the author of this survey for further assistance.")) @@ -88,4 +88,4 @@ class survey_name_wiz(osv.osv_memory): notes = self.pool.get('survey').read(cr, uid, survey_id, ['note'])['note'] return {'value': {'note': notes}} -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: