Skip to Content

Delivery Auto Validate on Invoice Creation

Auto-validates the delivery linked to a Sale Order when its invoice is created, only if fully in stock.
$ 19.95 $ 19.95
₹ 19.95

  • Versions
  • Technical Name
  • License
  • Lines of code
Technical Name: delivery_auto_validate
License: LGPL-3
Lines of code: 96
mindphin-logo mindphin-silver-logo
Community Enterprise Odoo.sh

Delivery Auto Validate

heading

Optimize and automate your order fulfillment. Automatically validate outgoing deliveries when customer invoices are created, with built-in stock availability safeguards and detailed warning logs.

Key Features

heading
Auto-Validation on Invoice

Triggers automatically when a customer invoice is created from a Sale Order, automatically validating the linked outgoing delivery order.

Stock Availability Safeguard

Checks inventory levels for every single item on the delivery. Auto-validation is only processed if all items are fully in stock.

Detailed Chatter Warning Logs

If stock is insufficient, a log note listing the exact short products is posted directly to the chatter of both the Sale Order and the Invoice.

Non-Blocking Operations

Invoice creation and billing processes are never blocked or delayed, ensuring continuous business flow even during stock shortages.

Auto-Confirm Wizards

Handles SMS and other validation wizards programmatically, resolving them in the background without needing user intervention.

Instant User Alerts

Sends real-time system notifications to active users when delivery validation requires manual intervention (e.g., lot/serial numbers).

Transactional Integrity

Uses database savepoint logic to guarantee that validation errors roll back cleanly, leaving delivery records in a safe state.

Out-Of-The-Box Activation

Ready to use immediately upon module installation. No complex configuration, setups, or adjustments required.

Workflow Steps & Logic

This module relies on a native Automation Rule and a Server Action to detect invoice creation and automatically validate deliveries when stock allows. Below is the step-by-step logical sequence:

Step 1
Invoice Created

Customer invoice is created from a Sale Order.

Step 2
Delivery Check

System locates pending outgoing deliveries and evaluates stock for every item.

Step 3
Availability Check

Checks if on-hand/reserved quantity fully covers demand. Checks each line individually.

Step 4
Auto Action

Success: Validates delivery & logs note.
Shortage: Skips validation & logs short items.

Detailed Decision Tree

Scenario Odoo Behavior & Results
All Products Fully Reserved
  • The system sets the done quantities automatically.
  • Executes validation programmatically.
  • Bypasses confirmation popups (like SMS confirmation).
  • Posts a success note on the chatter of both Sale Order & Invoice: "Delivery WH/OUT/XXXXX auto-validated: all products fully reserved."
Shortage (Even One Product)
  • The delivery order is left untouched (remains waiting or ready).
  • A warning chatter note is posted to both the Sale Order & Invoice naming the short products: "Delivery WH/OUT/XXXXX was NOT validated: insufficient available quantity for: Product A, Product B."
  • Sends an instant notification toast to the active user in Odoo.
Requires Manual Step (e.g. Lot/Serial)
  • If the stock is reserved but requires manual details (like choosing lot numbers or serial numbers during validation), the process stops safely.
  • Logs a message to the chatter explaining that manual action is required.
  • Sends a warning system notification: "Delivery WH/OUT/XXXXX could NOT be auto-completed even though stock was fully reserved - it needs a manual step..."

Scenario A: All Products Fully Reserved (Success)

Odoo Delivery Order Fully Reserved

Scenario B: Delivery Shortage Warning (Fail)

Odoo Delivery Order Shortage Warning

Installation & Validation Guide

This module works out of the box with zero complex setup. Follow these simple steps to install and verify the configuration:

Step-By-Step Activation

1

Go to the Apps module in Odoo.

Ready to test! Create a Sales Order, confirm it to generate the delivery, and click "Create Invoice". If items are in stock, you will see the delivery validate in real time!

Yes! The module works seamlessly with Odoo Community, Odoo Enterprise, and Odoo.sh.
The auto-validation skips the delivery and leaves it untouched. It then posts a detailed log note to both the Sales Order chatter and the Invoice chatter naming the exact out-of-stock product(s), and displays a system alert.
No, invoice creation is never blocked or delayed. The invoice is generated and posted normally; only the delivery order validation is skipped.
If Odoo requires lot or serial numbers during validation that are not yet filled, validation is bypassed safely. The system posts a chatter note explaining that manual lot/serial details must be confirmed.
Yes! Since the rule utilizes the standard Odoo Automation Rules module, you can easily go to the rule settings in Developer Mode and modify filters (e.g. restrict to specific sales channels or customers), change actions, or add extra conditions.

Version 20.0.1.2.0 | Released on : 18th August 2026

Initial Initial release for Odoo 20.0 with support for auto-validation on Invoice Creation and detailed warning logs.

Professional Support

Need help with configuration, experiencing integration issues, or want to request custom features? Our team of Odoo experts is here to assist. Please email us directly at support@mindphin.com.

heading
mindphin-logo