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

Module: Recurring - Product Contract

Entity: sale.order

Compute Method: _compute_contract_count

Inputs Method Outputs
  • order_line
for rec in self:
            rec.contract_count = len(rec.order_line.mapped("contract_id"))

Back to entity