summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorChristophe Monniez <moc@odoo.com>2018-10-22 07:27:25 +0000
committerChristophe Monniez <moc@odoo.com>2018-10-22 12:53:45 +0000
commit3c59add416fdba779675dc79580f6c0f56abc5a3 (patch)
tree7946c9e662d355c36454433d129876d3174388a4 /addons
parentc9356a1096c75879d08350a749667422e1192b0e (diff)
[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
Diffstat (limited to 'addons')
-rw-r--r--addons/survey/models/survey.py2
1 files changed, 1 insertions, 1 deletions
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')])