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

Module: Purchase landed costs - Alternative option

Entity: purchase.cost.distribution.line

Compute Method: _compute_name

Inputs Method Outputs
for dist_line in self:
            dist_line.name = (
                f"{dist_line.distribution.name}: {dist_line.picking_id.name} / "
                f"{dist_line.product_id.display_name}"
            )

Back to entity