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_expense

Inputs Method Outputs
for distribution in self:
            distribution.total_expense = sum(
                [x.expense_amount for x in distribution.expense_lines]
            )

Back to entity