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.work.location

Compute Method: _compute_icon

View 20.0
Inputs Method Outputs
  • location_type
+ for record in self:
+             if record.location_type == 'office':
+                 record.icon = 'business'
+             elif record.location_type == 'home':
+                 record.icon = 'home'
+             else:
+                 record.icon = None
  • icon

Back to entity