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_invoiced

View 18.0
Inputs Method Outputs
  • invoice_ids
- for rec in self:
-             invoiced = rec.invoice_ids.filtered(
-                 lambda inv: inv.state in ("draft", "posted")
-             )
-             rec.invoiced = invoiced and True or False
-             rec.amount_invoiced = rec._get_amount_invoice(invoiced[:1])
  • invoiced
  • amount_invoiced

Back to entity