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

Module: Overdue Invoice Reminder

Entity: account.move

Compute Method: _compute_overdue

Inputs Method Outputs
  • move_type
  • state
  • payment_state
  • invoice_date_due
today = fields.Date.context_today(self)
for move in self:
            overdue = False
            if (
                move.move_type == "out_invoice"
                and move.state == "posted"
                and move.payment_state in ("not_paid", "partial")
                and move.invoice_date_due
                and move.invoice_date_due < today
            ):
                overdue = True
            move.overdue = overdue

Back to entity