Skip to content

Commit

Permalink
[FIX] survey: fix sent_survey domain
Browse files Browse the repository at this point in the history
survey.user_input type was renamed to input_type in 35a5db9.
This domain was forgotten and made the click_everywhere test fail.
  • Loading branch information
d-fence committed Oct 22, 2018
1 parent a8cec47 commit 5742002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/survey/models/survey.py
Expand Up @@ -90,7 +90,7 @@ def _is_designed(self):
def _compute_survey_statistic(self):
UserInput = self.env['survey.user_input']

sent_survey = UserInput.search([('survey_id', 'in', self.ids), ('type', '=', 'link')])
sent_survey = UserInput.search([('survey_id', 'in', self.ids), ('input_type', '=', 'link')])
start_survey = UserInput.search(['&', ('survey_id', 'in', self.ids), '|', ('state', '=', 'skip'), ('state', '=', 'done')])
complete_survey = UserInput.search([('survey_id', 'in', self.ids), ('state', '=', 'done')])

Expand Down

0 comments on commit 5742002

Please sign in to comment.