[FIX] survey: in prepare_result, result_summary variable could be returned without...
authorThibault Delavallée <tde@openerp.com>
Wed, 27 Aug 2014 12:59:03 +0000 (14:59 +0200)
committerThibault Delavallée <tde@openerp.com>
Thu, 28 Aug 2014 10:42:09 +0000 (12:42 +0200)
addons/survey/survey.py

index e36d0c5..f3f44d5 100644 (file)
@@ -347,6 +347,7 @@ class survey_survey(osv.Model):
         ''' Compute statistical data for questions by counting number of vote per choice on basis of filter '''
         current_filters = current_filters if current_filters else []
         context = context if context else {}
+        result_summary = {}
 
         #Calculate and return statistics for choice
         if question.type in ['simple_choice', 'multiple_choice']: