[FIX] survey: fix sent_survey domain

survey.user_input type was renamed to input_type in 35a5db9.
This domain was forgotten and made the click_everywhere test fail.

closes odoo/odoo#28010
This commit is contained in:
Christophe Monniez
2018-10-22 12:53:45 +00:00
parent c9356a1096
commit 3c59add416
+1 -1
View File
@@ -90,7 +90,7 @@ class Survey(models.Model):
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')])