Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Sales
  3. Customer Credit Warning on Sale Order v 19.0
  4. Sales Conditions FAQ

Customer Credit Warning on Sale Order

by Randy Nguyen
Odoo
v 19.0 Third Party 9
Download for v 19.0 Deploy on Odoo.sh
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Invoicing (account)
• Sales (sale_management)
• Discuss (mail)
Lines of code 173
Technical Name partner_credit_warning
LicenseLGPL-3
Versions 17.0 18.0 19.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Invoicing (account)
• Sales (sale_management)
• Discuss (mail)
Lines of code 173
Technical Name partner_credit_warning
LicenseLGPL-3
Versions 17.0 18.0 19.0
Customer Credit Warning Icon
Customer Credit Warning on Sale Order
by Randy Nguyen
✓ Community ✓ Enterprise
Check Modes
2
⚠️
Odoo Version
19.0
⚡
License
LGPL-3
🔓
Enterprise Cost
$0
💰
Contact / Support  ·  nextstep.vina@gmail.com
Per-Partner Config Warn or Block Free Forever

Customer Credit Warning on Sale Order

Stop accumulating bad debt. A lightweight module that automatically checks a customer's outstanding balance when confirming a sale order. If they exceed their configured credit limit, the system either shows a popup warning (salesperson can override) or blocks confirmation entirely — per-partner, zero ongoing cost.

Odoo Enterprise charges $38/user/month partly for this feature. This module gives it to Community for free.

😓 The Problem
  • ✗ Sales reps confirm orders for customers who already owe large unpaid balances — no warning is shown.
  • ✗ Bad debt accumulates silently month over month, only discovered during reconciliation — too late to act.
  • ✗ Odoo Community has no built-in credit limit feature. The Enterprise version costs $38/user/month just to get this protection.
  • ✗ Finance teams have no automated control — they can only react after the sale is already confirmed.
🎯 The Solution
  • ✓ Set a Credit Limit and mode (Warn / Block) on each partner in the Sales & Purchase tab.
  • ✓ Warn mode: popup dialog shows Current Debt vs Limit — salesperson can confirm anyway or cancel.
  • ✓ Block mode: hard error prevents confirmation until the balance drops below the limit.
  • ✓ Live Credit Status widget on the sale order form shows real-time debt and limit in the Other Info tab.
Customer Credit Warning Demo

Key Features

🔢
Credit Limit field on each partner — set 0 for no limit. Configured once in the Sales & Purchase tab.
💬
Warn mode: popup dialog with Current Debt & Credit Limit — salesperson decides whether to proceed.
🚫
Block mode: hard validation error prevents confirmation entirely until the balance is paid down.
🔴
Red warning banner on the sale order form the moment a customer with exceeded credit is selected.
📊
Credit Status group in Other Info tab — shows live Current Debt and Credit Limit on the order form.
🔓
100% Free · LGPL-3 — replaces $38/user/month Enterprise feature. No paid tiers, no limitations.

Setup Guide

1) Install the module. Go to Settings → Activate Developer Mode → Apps → Update Apps List, search for "Customer Credit Warning" and click Install.

2) Open any customer form. Navigate to the Sales & Purchase tab and scroll down to the Credit Warning group. Set a Credit Limit and choose the mode.

Partner Credit Fields

Credit Warning group on the partner form — Credit Limit and mode (Warning / Blocked) set per customer

3) Create a sale order for a customer who has exceeded their limit. A red warning banner appears immediately at the top of the form.

Credit Warning Banner on Sale Order

Red "Credit Limit Exceeded!" banner visible as soon as the over-limit customer is selected

4) In Warn mode, clicking Confirm opens a dialog showing the exact debt and limit. The salesperson can Confirm Anyway or Cancel.

Credit Warning Popup Dialog

Warn mode popup — shows Sale Order, Customer, Current Debt ($1,500), Credit Limit ($1,000) with override option

5) In Block mode, clicking Confirm shows a hard error dialog — the order cannot be confirmed until the customer's balance drops below their limit.

Block Mode Error

Block mode error — prevents confirmation and shows Current Debt vs Limit clearly

6) The Credit Status group in the Other Info tab shows live Current Debt and Credit Limit directly on the sale order (only visible when a limit is configured).

Credit Status in Other Info tab

Credit Status group in Other Info tab — Current Debt 1,500.00 vs Credit Limit 1,000.00 at a glance

Frequently Asked Questions

What does "Current Debt" include?

It uses Odoo's built-in res.partner.credit field — the total outstanding receivable balance on all posted, unpaid invoices for the customer. This is the same value shown in the Invoicing module's customer receivables view.

What is the difference between Warn and Block modes?

Warn: a dialog pops up showing the overage. The salesperson can choose "Confirm Anyway" to proceed or "Cancel" to go back. Good for soft enforcement.

Block: a hard validation error is raised and the order cannot be confirmed at all until the customer pays down their balance below the limit. Good for strict credit control.

How do I disable the check for a specific customer?

Set the Credit Limit to 0 on the partner form. A value of 0 means "no limit" — the check is completely bypassed for that customer.

Does this module modify any existing Odoo data?

No. It only adds two fields to res.partner (credit_limit and credit_mode), extends the sale.order model with computed display fields, and adds a transient wizard model. All existing data is untouched. Uninstalling removes the added fields cleanly.

Does this require Odoo Enterprise?

No. This module is built specifically for Odoo 19 Community. It depends only on sale_management and account, both of which are available in the Community edition. No Enterprise license required.

Support

  • Email support: nextstep.vina@gmail.com
  • Response time: We aim to respond within 1–2 business days. Please include your Odoo version and a description of the issue.
  • Source code: LGPL-3 — free to use, modify, and redistribute. Available on GitHub: github.com/RandyNguyenN/partner_credit_warning

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with