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.line

Compute Method: _compute_contract_template_id

Inputs Method Outputs
  • product_id
  • order_id
  • order_id.company_id
for rec in self:
            rec.contract_template_id = rec.product_id.with_company(
                rec.order_id.company_id
            ).property_contract_template_id

Back to entity