[FIX] survey: Nasty brackets...

This commit is contained in:
Richard Mathot
2014-07-01 14:51:00 +02:00
parent e77594c3c3
commit 7721ddc7ad
+1 -1
View File
@@ -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}