Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Field Service - Accounting

Entity: fsm.order

Compute Method: _compute_get_invoiced

Inputs Method Outputs
for order in self:
            invoices = order.invoice_lines.mapped("move_id").filtered(
                lambda r: r.move_type in ("out_invoice", "out_refund")
            )
            order.invoice_ids = invoices
            order.invoice_count = len(invoices)

Back to entity