diff options
| author | Christophe Monniez <moc@odoo.com> | 2018-10-22 07:27:25 +0000 |
|---|---|---|
| committer | Christophe Monniez <moc@odoo.com> | 2018-10-22 12:53:45 +0000 |
| commit | 3c59add416fdba779675dc79580f6c0f56abc5a3 (patch) | |
| tree | 7946c9e662d355c36454433d129876d3174388a4 /addons | |
| parent | c9356a1096c75879d08350a749667422e1192b0e (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.py | 2 |
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')]) |
