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

Module: Subscription management

Entity: sale.subscription

Compute Method: _compute_rule_boundary

Inputs Method Outputs
for record in self:
            # No template yet (e.g. a new record in the form view) or an
            # unlimited one: there is no end date to compute.
            if (
                not record.template_id
                or record.template_id.recurring_rule_boundary == "unlimited"
            ):
                record.date = False
                record.recurring_rule_boundary = True
            else:
                record.date = record.template_id._get_date(record.date_start)
                record.recurring_rule_boundary = False

Back to entity