Order Fraud Score & RTO Risk - Block Fake Cash on Delivery Orders, COD Fraud Detection, Return to Origin Prevention
by Modvanta https://modvantaapps.tech/odoo-apps/order-fraud-score/$ 14.96

Stop fake cash on delivery orders before you ship them
Every website order gets a fraud score from weighted rules when the customer reaches the payment step. Low risk orders keep Cash on Delivery, medium risk orders must pay online, and high risk orders are held for review.
Written and supported by Modvanta - modvantaapps@gmail.com
What it does
Cash on delivery orders that are refused at the door (return to origin, RTO) cost the shipping both ways and block stock. Most of them can be predicted: a customer who refused a delivery before, cancels a lot, reuses another customer's phone number, gives a two-word address or orders in the middle of the night.
This module scores the cart from 0 to 100 against 16 configurable rules when the customer reaches the payment page. The score falls into a low, medium or high band, and each band has an action: allow, require prepayment (Cash on Delivery is hidden), hold for manual review, or block the order.
Every order keeps its score, risk level, action and a line-by-line breakdown of which rule fired and why. Customers and pincodes get delivered, returned and cancelled counters, and a trusted customer with clean deliveries scores lower.
Who it is for
Shops that offer Cash on Delivery Online stores where refused COD parcels eat the margin. | Operations teams Review only the risky orders instead of calling every customer. | Growing D2C brands Keep COD for loyal customers while asking new, risky ones to prepay. |
Key features
Screenshots were taken on Odoo 19 with this module on a clean demo database (company Northwind Trading Co, prices in INR). The customers are sample people with an order history created on the bench; online payment is Odoo's demo provider in test mode.
Feature 1
Low risk: Cash on Delivery stays
Priya has three delivered orders. Her cart scores 0 (the trusted customer rule takes points off), so both Cash on Delivery and online payment are offered.

Feature 2
Medium risk: prepayment only
Kavya is a first-time customer with a large COD cart at an unusual hour: score 45, medium risk. Cash on Delivery is hidden and the checkout explains that an online payment method is needed.
The message is a setting

Feature 3
High risk: held for review
Rohan has a returned parcel and two cancelled orders: score 100. He paid online, and the order was held instead of confirmed. It appears in Fraud Review with Approve and Reject buttons, and a to-do activity is scheduled for the salesperson.
Approve confirms the order and records who approved it

Feature 4
Why this score
The Fraud Check tab on the order shows the score, risk level, action, whether COD was blocked, the scoring time and IP, and every rule that fired with its points and the reason - for example 1 order(s) returned to origin in the last 365 days.
Re-score and Mark as Returned (RTO) buttons on the order

Feature 5
All scored orders
Order Risk Scores lists every scored website order with its score, risk level and review status.

Feature 6
16 weighted rules you control
Previous RTO, repeat cancellations, RTO rate, flagged customer, trusted customer, first-time COD, large COD, guest checkout, invalid or reused phone, short address, missing pincode, bad pincode history, disposable email, IP velocity and odd hours. Change points and thresholds, or switch rules off.

Feature 7
Delivery history per customer
The customer form gets a Fraud & RTO tab with a fraud flag (normal, trusted or high risk), the normalised phone number and the orders, delivered, returned and cancelled counters with the RTO rate.

Feature 8
Pincode risk
Pincode Risk keeps orders, delivered, returned and RTO rate per pincode / ZIP, so once a pincode has enough shipped orders (5 by default) with a high return rate (30% by default), new orders there score higher.

Feature 9
Bands and actions in settings
Set where medium and high risk start (35 and 65 by default), the action for each band and the messages shown at checkout.

Feature 10
Mark your COD payment method
Tick Cash on Delivery Provider on every payment provider that is paid at the door. Those are the ones hidden from risky carts.

How it works, step by step
| 1 | Mark your COD provider Open the payment provider used for cash on delivery and tick Cash on Delivery Provider. |
| 2 | Check the bands and actions In Website settings, under Order Fraud & RTO Prevention, set the thresholds and the action for low, medium and high risk. |
| 3 | Tune the rules Website -> eCommerce -> Fraud Prevention -> Scoring Rules: change points or thresholds, switch off what you do not need. |
| 4 | Customers check out At the payment step the cart is scored. COD is hidden or the order held depending on the band. |
| 5 | Review and learn Approve or reject held orders from Fraud Review, and mark refused parcels as Returned (RTO) so the customer and pincode history improves the next score. |
Settings
| Order Fraud Scoring | Turns scoring on for the website. |
| Medium Risk From / High Risk From | Score thresholds of the bands, 35 and 65 by default. |
| Low / Medium / High Risk Action | Allow, require prepayment (no COD), hold for manual review (no COD) or block the order. Defaults: allow, prepayment, hold. |
| Prepayment Message | Shown at checkout when Cash on Delivery is hidden. |
| Blocked Message | Shown when an order is blocked. |
Frequently asked questions
When is the score calculated?
When the customer reaches the payment step of the website checkout, and again with Re-score from the order.
Does it need a courier integration?
No. The returned (RTO) counters come from orders you mark as Returned to Origin in Odoo.
Can a held order still be approved?
Yes. Approve in the Fraud Review list confirms it and records the reviewer; Reject cancels it.
Which payment methods are hidden?
Only providers ticked as Cash on Delivery Provider. Online payment methods stay available.
Is my data sent anywhere?
No. All checks run inside your Odoo database.
Compatibility
Odoo 19 Community and Enterprise | Depends on eCommerce, Sales, Payment | Tested 33 automated tests |
Keep Cash on Delivery for good customers and stop the fake orders
Questions before you buy, help with setup, or a change for your own workflow - write to us and a developer answers.
SUPPORT | AUTHOR Modvanta | INCLUDED Module, setup help by email |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Sales (sale_management)
• eCommerce (website_sale) • Discuss (mail) • Invoicing (account) • Website (website) |
| Lines of code | 1461 |
| Technical Name |
mdv_order_fraud_score |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/order-fraud-score/ |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module