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.invoice.plan

Compute Method: _compute_last

View 17.0 View 18.0
Inputs Method Outputs
  • purchase_id
  • purchase_id.invoice_plan_ids
  • installment
for rec in self:
            last = max(rec.purchase_id.invoice_plan_ids.mapped("installment"))
            rec.last = rec.installment == last
  • last

Back to entity