Hardik Ansodariya (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-survey_answer_warning-han into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-survey_answer_warning-han/+merge/88361
Hello
Survey > answer survey > answer survey
Survey traceback when going to attempt a survey beyond limit,
raise osv.except_osv(_('Warning !'),_("You can not give response for this
survey more than %s times") % (user_limit))
NameError: global name 'user_limit' is not defined
Here should be right dialogbox for warning or error message.
fixed this issue
Thanks
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-survey_answer_warning-han/+merge/88361
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-survey_answer_warning-han.
=== modified file 'survey/wizard/survey_selection.py'
--- survey/wizard/survey_selection.py 2011-11-09 18:12:56 +0000
+++ survey/wizard/survey_selection.py 2012-01-12 12:07:29 +0000
@@ -63,7 +63,7 @@
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 @@
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:
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp