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

View 18.0
Inputs Method Outputs
  • applicant_ids
- 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)))
  • priority

Back to entity