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

Module: Management System - Nonconformity

Entity: mgmtsystem.nonconformity.cause

Compute Method: _compute_display_name

Inputs Method Outputs
for obj in self:
            if obj.parent_id:
                obj.display_name = f"{obj.parent_id.display_name} / {obj.name}"
            else:
                obj.display_name = obj.name

Back to entity