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_to_invoice
| Inputs | Method | Outputs |
|---|---|---|
|
- """If any invoice is in draft/open/paid do not allow to create inv - Only if previous to_invoice is False, it is eligible to_invoice - """ - for rec in self: - rec.to_invoice = False - for rec in self.sorted("installment"): - if rec.purchase_id.state != "purchase": - continue - if not rec.invoiced: - rec.to_invoice = True - break |
|
