From 3c59add416fdba779675dc79580f6c0f56abc5a3 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Mon, 22 Oct 2018 07:27:25 +0000 Subject: [PATCH] [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 --- addons/survey/models/survey.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/survey/models/survey.py b/addons/survey/models/survey.py index 41fc884faa2..d24c124f735 100644 --- a/addons/survey/models/survey.py +++ b/addons/survey/models/survey.py @@ -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')])