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: gamification.badge

Compute Method: _compute_survey_id

Inputs Method Outputs
for badge in self:
            badge.survey_id = badge.survey_ids[0] if badge.survey_ids else None

Back to entity