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

Module: HR Gamification

Entity: hr.employee.base

Compute Method: _compute_employee_goals

View 17.0
Inputs Method Outputs
  • user_id
  • user_id.id
- for employee in self:
-             employee.goal_ids = self.env['gamification.goal'].search([
-                 ('user_id', '=', employee.user_id.id),
-                 ('challenge_id.challenge_category', '=', 'hr'),
-             ])
  • goal_ids

Back to entity