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.survey

Compute Method: _compute_scoring_max_obtainable

Inputs Method Outputs
for survey in self:
            survey.scoring_max_obtainable = sum(
                question.answer_score
                or sum(answer.answer_score for answer in question.suggested_answer_ids if answer.answer_score > 0)
                for question in survey.question_ids
            )

Back to entity