MODULES / OPERATIONS
Customer Credit Limit Control
Prevent sales order confirmations that exceed a customer's remaining credit limit.
Overview
| Module id | appscomp_sale_customer_credit_limit |
|---|---|
| Version | 1.0.0 |
| Who uses it | Anyone who uses the screens listed below. |
| Installed | On demand, from Settings → Modules. Anything it needs is installed with it. |
How it links to other modules
- Needs: Invoicing, Accounting
- Works better with: no other module in particular
- Needed by: no other module
A module that is needed cannot be turned off while the module that needs it is on.
Details
Customer Credit Limit Control
Optional port of Odoo's appscomp_sale_customer_credit_limit. A customer with a configured credit limit cannot have a sales order confirmed if posted receivables, other confirmed sales commitments, and the order being confirmed exceed that limit. Customers with no limit set remain unrestricted. The limit uses the customer's ASKERP company-currency amount and includes tax in the order amount.
The check runs inside the shared sales-order transition service, including quotation conversion. It locks the order and then the customer row; all order confirmations for that customer serialize on the customer lock. Posted receivable exposure comes from the ledger. Confirmed order commitments are reduced by their posted, linked delivery invoices, preventing the same sale from being counted as both an order and a receivable. An over-limit confirmation fails atomically.
Configure the amount on the existing customer record and install this module from Settings > Modules. The module does not create a second approval path or let a browser flag bypass the limit. Over-limit orders must be reduced or the customer's limit changed by a permitted user. No migration is required. Company isolation continues through RLS and the existing active-company context.