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

Module: Repair Analytic

Entity: repair.order

Compute Method: _compute_analytic_line_count

Inputs Method Outputs
  • id
for repair in self:
            repair.analytic_line_count = self.env["account.analytic.line"].search_count(
                [("repair_order_id", "=", repair.id)]
            )

Back to entity