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

Module: Register due payments

Entity: account.move.line

Compute Method: _compute_pending_due_date

Inputs Method Outputs
  • date_maturity
"""Establish due date for pending payments.

        If a payment is matched, it means it's paid. We empty the field if the
        payment is done, so the `remaining_days` widget is nicer for the user.
        """
matched = self.filtered("matching_number")
matched.pending_due_date = False
for move in self - matched:
            move.pending_due_date = move.date_maturity

Back to entity