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

Module: Project Roles

Entity: project.role

Compute Method: _compute_complete_name

Inputs Method Outputs
for role in self:
            if role.parent_id:
                role.complete_name = _("%(parent)s / %(own)s") % {
                    "parent": role.parent_id.complete_name,
                    "own": role.name,
                }
            else:
                role.complete_name = role.name

Back to entity