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

Module: Account Payment Order

Entity: account.move

Compute Method: _compute_payment_line_count

Inputs Method Outputs
  • line_ids
  • line_ids.ids
for move in self:
            move.payment_line_count = len(
                self.env["account.payment.line"]._search(
                    [("move_line_id", "in", self.line_ids.ids)]
                )
            )

Back to entity