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

Module: Maintenance Plan

Entity: maintenance.equipment

Compute Method: _compute_maintenance_plan_count

Inputs Method Outputs
for equipment in self:
            equipment.maintenance_plan_count = len(
                equipment.with_context(active_test=False).maintenance_plan_ids
            )

Back to entity