From 7721ddc7ad30f73f66cafe4981c8ba56a19cfdfe Mon Sep 17 00:00:00 2001 From: Richard Mathot Date: Tue, 1 Jul 2014 14:51:00 +0200 Subject: [PATCH] [FIX] survey: Nasty brackets... --- addons/survey/survey.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/survey/survey.py b/addons/survey/survey.py index 590d7ae22c8..9ccba440c86 100644 --- a/addons/survey/survey.py +++ b/addons/survey/survey.py @@ -360,7 +360,7 @@ class survey_survey(osv.Model): for cell in product(rows.keys(), answers.keys()): res[cell] = 0 for input_line in question.user_input_line_ids: - if input_line.answer_type == 'suggestion' and not(current_filters) or input_line.user_input_id.id in current_filters: + if input_line.answer_type == 'suggestion' and (not(current_filters) or input_line.user_input_id.id in current_filters): res[(input_line.value_suggested_row.id, input_line.value_suggested.id)] += 1 result_summary = {'answers': answers, 'rows': rows, 'result': res}