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_reminder_sent

Inputs Method Outputs
for move in self:
            today = fields.Date.context_today(self)
            min_interval_days = move.company_id.overdue_reminder_min_interval_days
            interval_date = today - relativedelta(days=min_interval_days)
            last_date = move.overdue_reminder_last_date
            move.overdue_remind_sent = last_date and last_date > interval_date

Back to entity