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

Module: Account commissions OCA

Entity: commission.settlement

Compute Method: _compute_invoice_id

View 18.0
Inputs Method Outputs
  • invoice_line_ids
+ for record in self:
+             record.invoice_id = record.invoice_line_ids.filtered(
+                 lambda x: x.parent_state != "cancel"
+             )[:1].move_id
  • invoice_id

Back to entity