[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:
@@ -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')])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user