From: Thibault Delavallée Date: Thu, 12 Jan 2012 15:05:15 +0000 (+0100) Subject: [MERGE]: survey: fixed a bug in warning message when users exceed maximal number... X-Git-Tag: 6.1.0-rc1-addons~4 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=9b827b47c26fc80c4253969bb3ca0c9142cc594e;p=odoo%2Fodoo.git [MERGE]: survey: fixed a bug in warning message when users exceed maximal number of allowed answers bzr revid: tde@openerp.com-20120112150515-sxozygi6n4m6hs0f --- 9b827b47c26fc80c4253969bb3ca0c9142cc594e diff --cc addons/survey/wizard/survey_selection.py index 82c9fd3,7683e85..a1fd05c --- a/addons/survey/wizard/survey_selection.py +++ b/addons/survey/wizard/survey_selection.py @@@ -63,7 -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)) ++ raise osv.except_osv(_('Warning !'),_("You can not give response for this survey more than %s times") % (sur_rec.response_user)) 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."))