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_invoice_plan

Inputs Method Outputs
for rec in self:
            rec.ip_invoice_plan = (
                rec.use_invoice_plan
                and rec.invoice_plan_ids
                and len(rec.invoice_plan_ids.filtered(lambda pln: not pln.invoiced))
            )

Back to entity