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
| Inputs | Method | Outputs |
|---|---|---|
|
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])
|
|
