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

Module: Employees

Entity: hr.employee.base

Compute Method: _compute_presence_icon

View 18.0
Inputs Method Outputs
  • hr_presence_state
  • user_id
- """
-         This method compute the state defining the display icon in the kanban view.
-         It can be overriden to add other possibilities, like time off or attendances recordings.
-         """
- for employee in self:
-             employee.hr_icon_display = 'presence_' + employee.hr_presence_state
-             employee.show_hr_icon_display = bool(employee.user_id)
  • hr_icon_display
  • show_hr_icon_display

Back to entity