Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Surveys

Entity: survey.question

Compute Method: _compute_has_image_only_suggested_answer

Inputs Method Outputs
questions_with_image_only_answer = self.env['survey.question'].search(
            [('id', 'in', self.ids), ('suggested_answer_ids.value', 'in', [False, ''])])
questions_with_image_only_answer.has_image_only_suggested_answer = True
(self - questions_with_image_only_answer).has_image_only_suggested_answer = False

Back to entity