Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Recruitment - Skills Management
Entity: hr.candidate
Compute Method: _compute_matching_skill_ids
| Inputs | Method | Outputs |
|---|---|---|
|
+ job_id = self.env.context.get('active_id') + if not job_id: + self.matching_skill_ids = False + self.missing_skill_ids = False + self.matching_score = 0 + else: + for candidate in self: + job_skills = self.env['hr.job'].browse(job_id).skill_ids + candidate.matching_skill_ids = job_skills & candidate.skill_ids + candidate.missing_skill_ids = job_skills - candidate.skill_ids + candidate.matching_score = (len(candidate.matching_skill_ids) / len(job_skills)) * 100 if job_skills else 0 |
|
