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_is_contract

Inputs Method Outputs
  • order_line
self.is_contract = any(
            self.order_line.filtered(lambda ol: not ol.avoid_create_contract).mapped(
                "is_contract"
            )
        )

Back to entity