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

Compute Method: _compute_total_volume

Inputs Method Outputs
for distribution in self:
            distribution.total_volume = sum(
                [x.total_volume for x in distribution.cost_lines]
            )

Back to entity