Repository
OCA/credit-control · module folder · Try on Runboat
Module version
1.0.0
Category
Sales/Sales
Folder size
0.19 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/credit-control
Last tracking update
2026-08-07 09:06:36
Authors
Akretion, Odoo Community Association (OCA)
Maintainers
Akretion, Odoo Community Association (OCA)
Committers
Christopher Rogos, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
This module adds a warning banner on quotation and sale order form view
when the invoicing partner has overdue invoices. The banner informs the
user about the number of overdue invoices and the total overdue amount.
It contains a link to see the corresponding overdue invoices.

![](static/description/sale_order_overdue_invoice_warn.png)

This module depends on the module *account_invoice_overdue_warn* which
adds the same banner on the form view of partners.

Implementation details:

- in a multi-company configuration, the overdue invoices taken into
  account are the invoices of the company of the sale order.
- the overdue amount is in the company currency.
- the overdue invoices taken into account are all the overdue invoices
  of the parent partner of the invoicing partner of the order and of all
  its contacts.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_order_form sale.order form Inherits sale.view_order_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (1)

New fields (4)
  • commercial_partner_invoicing_id Many2one
    related='partner_invoice_id.commercial_partner_id' string='Commercial Invoicing Partner'
  • company_currency_id Many2one
    related='company_id.currency_id' store=True string='Company Currency'
  • overdue_invoice_amount Monetary
    compute='_compute_overdue_invoice_count_amount' compute_sudo=True currency_field='company_currency_id' help='Overdue invoices total residual amount of the invoicing partner in company currency.' string='Overdue Invoices Residual'
  • overdue_invoice_count Integer
    compute='_compute_overdue_invoice_count_amount' compute_sudo=True string='# of Overdue Invoices'
Public methods (1)
  • jump_to_overdue_invoices(self)

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…