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_is_attempts_limited

Inputs Method Outputs
for survey in self:
            if not survey.is_attempts_limited or \
               (survey.access_mode == 'public' and not survey.users_login_required) or \
               any(question.triggering_answer_ids for question in survey.question_and_page_ids):
                survey.is_attempts_limited = False

Back to entity