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_date_end

Inputs Method Outputs
for sol in self:
            if sol.is_auto_renew and sol.date_start:
                sol.date_end = self.env["contract.line"]._get_first_date_end(
                    sol.date_start,
                    sol.auto_renew_rule_type,
                    sol.auto_renew_interval,
                )
            else:
                sol.date_end = False

Back to entity