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

Module: Purchase Invoice Plan

Entity: purchase.order

Compute Method: _compute_ip_total

View 17.0 View 18.0
Inputs Method Outputs
  • invoice_plan_ids
for rec in self:
            installments = rec.invoice_plan_ids.filtered("installment")
            rec.ip_total_percent = sum(installments.mapped("percent"))
            rec.ip_total_amount = sum(installments.mapped("amount"))
  • ip_total_percent
  • ip_total_amount

Back to entity