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

Module: Field Service

Entity: fsm.location

Compute Method: _compute_complete_name

Inputs Method Outputs
for loc in self:
            name = loc.partner_id.name
            if loc.ref:
                name = f"[{loc.ref}] {name}"
            if loc.parent_id:
                name = f"{loc.parent_id.complete_name} / {name}"
            loc.complete_name = name

Back to entity