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

Module: Agreement - Repair

Entity: agreement

Compute Method: _compute_repair_count

Inputs Method Outputs
for ag_rec in self:
            ag_rec.repair_count = self.env["repair.order"].search_count(
                [("agreement_id", "in", ag_rec.ids)]
            )

Back to entity