projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14fae54
)
[FIX] survey: catch exception while quizz mode
author
Richard Mathot
<rim@openerp.com>
Tue, 1 Jul 2014 13:56:50 +0000
(15:56 +0200)
committer
Richard Mathot
<rim@openerp.com>
Tue, 1 Jul 2014 13:56:50 +0000
(15:56 +0200)
addons/survey/survey.py
patch
|
blob
|
history
diff --git
a/addons/survey/survey.py
b/addons/survey/survey.py
index
3a9145e
..
1389e63
100644
(file)
--- a/
addons/survey/survey.py
+++ b/
addons/survey/survey.py
@@
-993,6
+993,8
@@
class survey_user_input_line(osv.Model):
def __get_mark(self, cr, uid, value_suggested, context=None):
try:
mark = self.pool.get('survey.label').browse(cr, uid, int(value_suggested), context=context).quizz_mark
+ except AttributeError:
+ mark = 0.0
except KeyError:
mark = 0.0
except ValueError: