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

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

Back to entity