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

Module: Subscription management

Entity: sale.subscription

Compute Method: _compute_name

Inputs Method Outputs
for record in self:
            template_code = record.template_id.code if record.template_id.code else ""
            code = record.code if record.code else ""
            slash = "/" if template_code and code else ""
            record.name = f"{template_code}{slash}{code}"

Back to entity