Extends Partner Financial Risk to manage sales orders.
Adds a new risk amount field in sale order line to compute risk based on the difference between ordered quantity (or delivered in some cases) and invoiced quantity.
If any limit is exceed the partner gets forbidden to confirm sale orders.
auto_awesome What this module does
AI-generated from the code · Odoo 19.0Extends partner financial risk to sales orders: it computes the un-invoiced amount of confirmed sales orders and blocks order confirmation when the customer's credit or sales-order risk limit is exceeded.
This module brings the credit-control logic already used for invoices into the sales process. On each customer (res.partner) you get new risk fields: a flag to include sales orders in the risk computation, a sales-order risk limit, and a computed "Total Sales Orders Not Invoiced" amount. These appear on the partner's risk tab, next to the existing invoice risk fields, and the amount is a clickable button that opens a pivot analysis of the underlying sale order lines.
Every sale order line now carries a computed risk amount, based on the difference between ordered quantity (or delivered quantity when the product is invoiced on delivery) and already invoiced quantity, converted to the customer's risk currency. Lines in non-risk states or section/note lines count as zero.
When a user confirms a sale order, Odoo checks the customer's commercial entity: if the financial risk is already exceeded, if the sales-order risk limit would be passed, or if the combined risk would pass the credit limit, confirmation is stopped and a warning wizard is shown. A company setting can allow confirming over the risk, and another setting can include locked (done) orders in the risk calculation. Payment transactions bypass this check when they trigger confirmation or invoicing.
Depends on
Required by other modules
Models and fields (5)
- sale.order · extends an existing model
- res.company · extends an existing modelallow_overrisk_sale_confirmation (Allow sale order confirmation over the risk)
- res.partner · extends an existing modelrisk_sale_order (Total Sales Orders Not Invoiced), risk_sale_order_limit (Limit Sales Orders), risk_sale_order_include (Include Sales Orders)
- sale.order.line · extends an existing modelrisk_amount, risk_partner_id (Commercial Entity), company_currency_id (Company Currency)
- res.config.settings · extends an existing modelinclude_risk_sale_order_done (Include locked sale orders into risk calculation), allow_overrisk_sale_confirmation
Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 8 confirmed, 1 with no information of 9 versions.
Sources · Odoo 19.0
Confirmed on 2026-11-03 in branch 19.0 of OCA/credit-control.
terminal Installation and usage
OCA documentation · Odoo 19.0Usage
Source · Odoo 19.0To use this module, you need to:
- Go to Customers \> Financial Risk
- Set limits and choose options to compute in credit limit.
- Go to Sales -\> Orders -\> Orders and create a new Sales Orders.
No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.