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
    • Estate 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. Accounting
  3. PV: Customer Risk Score for Sales v 18.0
  4. Sales Conditions FAQ

PV: Customer Risk Score for Sales

by PV-Odoo
Odoo
v 18.0 Third Party 15
Download for v 18.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)
• Discuss (mail)
Lines of code 596
Technical Name pv_sale_customer_risk_score
LicenseLGPL-3
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Invoicing (account)
• Discuss (mail)
Lines of code 596
Technical Name pv_sale_customer_risk_score
LicenseLGPL-3

PV: Customer Risk Score for Sales

Customer risk KPIs on partners + a Debtors dashboard (list / pivot / graph) for grouping, sorting and quick analysis.
Module: pv_sale_customer_risk_score Odoo 18 LGPL-3
Table of contents
  1. Summary (business view & use-cases)
  2. Setup guide for beginners
  3. Field explanations (table)
  4. Technical overview
  5. Setting Low & High thresholds

Summary (business view & use-cases)

The module adds an at-a-glance credit risk profile for each customer and a consolidated Debtors view for finance and sales teams. It highlights: Credit Utilization %, Overdue Ratio, recent order activity, and a weighted Risk Score with a Level (Low / Medium / High). Sales can be warned or blocked for high-risk customers.

Typical use-cases

  • Collections: Sort customers by Overdue Ratio to focus dunning efforts.
  • Sales control: Warn on quotation or block SO confirmation for High risk.
  • Credit control: Monitor Credit Utilization % vs Credit Limit.
  • Account review: Use Pivot to group by Risk Level and drill down by company or salesperson.

Where to work

  • Partner KPIs: open a customer → Risk tab.
  • Debtors dashboard: Invoicing → Debtors (list / pivot / graph).
  • Configuration: Settings → General Settings → Sales → Customer Risk Score.

Setup guide for beginners

  1. Install the module. Ensure your user can access the Invoicing app.
  2. Configure (company-specific):
    • Go to Settings → General Settings → Sales → Customer Risk Score.
    • Set Activity Window (Days) (e.g., 120).
    • Set weights (starting suggestion: Utilization 40, Overdue 50, Inactivity 10).
    • Set Low / High thresholds (start with Low 30, High 70).
    • Optional: enable Warn on quotation / Block confirmation if High.
  3. Prime the data:
    • Open any partner → Risk tab → click Recompute Risk to preview KPIs, or
    • Run scheduled action PV: Recompute Customer Risk Scores (Settings → Technical → Automation → Scheduled Actions).
  4. Use the Debtors dashboard:
    • Navigate to Invoicing → Debtors.
    • Hide/show columns from the column dropdown (per user).
    • Switch to Pivot to group by Risk Level, Company, etc.; Graph for quick trends.

Note: Configuration and results are company-aware. Switch your active company before editing settings.

Field explanations

FieldLocationExplanation
Activity Window (Days) Settings → Sales → Customer Risk Score How many days back to count confirmed/done sales orders for “Orders in Window”. Also shown on Partner → Risk tab.
Weight: Credit Utilization Settings → Sales → Customer Risk Score → Weights Contribution of Credit Utilization % to the Risk Score.
Weight: Overdue Ratio Settings → Sales → Customer Risk Score → Weights Contribution of Overdue Ratio to the Risk Score.
Weight: Inactivity Settings → Sales → Customer Risk Score → Weights Penalty applied if “Orders in Window” is below the configured target.
Target orders in window Settings → Sales → Customer Risk Score → Weights Sales activity target; falling short increases risk via Inactivity weight.
Low threshold (score ≥) Settings → Sales → Customer Risk Score → Thresholds Minimum score for Medium risk when below the High threshold.
High threshold (score ≥) Settings → Sales → Customer Risk Score → Thresholds Minimum score for High risk.
Warn on Quotation if Risk Settings → Sales → Customer Risk Score → Behavior Shows a warning on quotations for Medium/High risk customers.
Block confirmation if High Settings → Sales → Customer Risk Score → Behavior Prevents confirming a Sales Order if the customer risk level is High.
Credit Utilization % Partner → Risk Outstanding / Credit Limit × 100. Outstanding = open AR residuals (posted customer invoices + credit notes).
Overdue Ratio Partner → Risk / Debtors (Overdue Invoices − Open Credit Notes) / Total Open Invoices. Denominator includes invoices only; credits are subtracted in the numerator.
Orders in Window Partner → Risk / Debtors Count of confirmed/done sales orders within the Activity Window.
Risk Score / Risk Level Partner → Risk / Debtors Weighted score based on KPIs; Level derived from Low/High thresholds.
Last Updated Debtors list Timestamp when the snapshot row was last refreshed by cron.

Technical overview

Main pieces

  • Partner KPIs (computed, not stored): on res.partner “Risk” tab.
  • Snapshot model: pv.debtor.kpi stores aggregates for the Debtors dashboard.
  • Views: list (columns optional per user), pivot (Outstanding, Credit Open, Overdue, Risk Score), graph.
  • Cron jobs:
    • PV: Recompute Customer Risk Scores — recomputes partner snapshot fields.
    • PV: Refresh Debtor KPI — rebuilds pv.debtor.kpi rows.

Key formulas

  • Outstanding: sum of amount_residual on posted out_invoice and out_refund for the commercial partner & company.
  • Overdue invoices: same but due date < today (invoices only).
  • Open credit notes: residuals on posted out_refund (treated as positive when subtracting).
  • Overdue Ratio: (Overdue Invoices − Open Credit Notes) / Total Open Invoices (denominator excludes credit notes; ratio is 0 when denominator is 0).
  • Credit Utilization %: Outstanding / Credit Limit × 100.

Risk score

Weighted sum of (Credit Util %, Overdue Ratio, Inactivity penalty vs “Target orders in window”). Level mapping: if Score ≥ High → High; else if Score ≥ Low → Medium; else Low.

Access & Menus

  • Users need Invoicing access and read on res.partner to see Debtors.
  • Menu: Invoicing → Debtors. Settings panel: Settings → General Settings → Sales → Customer Risk Score.

Setting Low & High thresholds

Where to set them

  1. Open Settings (with Settings rights).
  2. Navigate to General Settings → Sales → Customer Risk Score.
  3. Fill:
    • Low threshold (score ≥)
    • High threshold (score ≥)
  4. Click Save.

Company-specific: switch your active company before editing.

How they work

  • If Score ≥ High → Level = High.
  • Else if Score ≥ Low → Level = Medium.
  • Else → Low.

After changing them

  • Update immediately by either:
    • Partner → Risk → Recompute Risk, or
    • Run PV: Recompute Customer Risk Scores cron (Settings → Technical → Scheduled Actions).
  • Refresh Debtors via PV: Refresh Debtor KPI if you want the list to update right away.

Quick calibration tips

  • Start with Low = 30, High = 70.
  • In Invoicing → Debtors, sort by Risk Score:
    • Set High where the “risky few” begin (top ~10–20%).
    • Set Low where the healthy majority tails off (~30–40).
  • Review after a week; tweak to match your tolerance for warnings/blocks.

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.
Please choose a rating from 1 to 5 for this module.
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