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

Module: Recruitment

Entity: hr.candidate

Compute Method: _compute_priority

Inputs Method Outputs
for candidate in self:
            if not candidate.applicant_ids:
                candidate.priority = "0"
            else:
                candidate.priority = str(round(sum(int(a.priority) for a in candidate.applicant_ids) / len(candidate.applicant_ids)))

Back to entity