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

Module: Sales

Entity: account.move

Compute Method: _compute_service_line_count

Inputs Method Outputs
services_data = self.env["account.analytic.line"]._read_group(
            self._domain_services_analytic_line(), ["reinvoice_move_id"], ["__count"]
        )
mapped_services_data = dict(services_data)
for move in self:
            move.service_line_count = mapped_services_data.get(move, 0)

Back to entity