| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Inventory (stock) |
| Lines of code | 893 |
| Technical Name |
an_backdated_inventory |
| License | LGPL-3 |
| Website | https://www.yourwebsite.com |
| Versions | 17.0 18.0 19.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Inventory (stock) |
| Lines of code | 893 |
| Technical Name |
an_backdated_inventory |
| License | LGPL-3 |
| Website | https://www.yourwebsite.com |
| Versions | 17.0 18.0 19.0 |
Historical Stock Quantity Adjustment
View and correct stock quantities at any past date with automatic future move consideration
Odoo 19.0What Makes This Module Different?
|
1
Get Historical Qty
Calculate exact stock quantity at any past date |
2
Correct It
Set the quantity that should have been at that date |
3
See Today's Impact
Auto-calculates effect on current stock (considers future moves) |
The Problem This Solves
The Historical Stock Quantity Adjustment module solves this by:
- Calculating the exact stock quantity at any past date - Not today's quantity, but what it was (or should have been) on that specific date
- Allowing you to correct that historical quantity - Set the correct value that should have been recorded
- Automatically considering moves after that date - Shows you "Today Qty After" which accounts for all stock movements that happened between the adjustment date and today
Main list view showing historical quantities and their impact on today's stock
How It Works - Example
Scenario: You want to correct stock for Product X at Location A on December 31, 2024
| Field | Value | Meaning |
|---|---|---|
| Adjustment Date | 31/12/2024 | The historical date you want to correct |
| Current Qty | 100 | Calculated stock at 31/12/2024 (based on moves up to that date) |
| Target Qty | 120 | What the stock SHOULD have been on 31/12/2024 |
| Difference | +20 | The adjustment needed (auto-calculated) |
| Today Qty | 80 | Current stock today (includes moves after 31/12) |
| Today Qty After | 100 | What today's stock will be after applying (+20) |
Result: A backdated stock move for +20 units is created on 31/12/2024, and your current stock automatically increases from 80 to 100.
Load by Location wizard - bulk load all products from a location
Key Features
Historical Quantity CalculationAccurately calculates what stock quantity was at any past date by analyzing all stock moves up to that date. |
Future Move ConsiderationShows "Today Qty After" - automatically factors in all moves that happened AFTER your adjustment date. |
Backdated RecordsCreates stock moves, journal entries, and valuation layers with the historical date for proper accounting. |
Bulk OperationsLoad all products from a location or all internal locations. Apply adjustments to multiple products at once. |
Form view with real-time calculations
What Gets Created (All Backdated)
| Record Type | Description |
|---|---|
| Stock Move | Created with your adjustment date (end of day) |
| Stock Move Line | With lot/serial tracking if applicable |
| Stock Quant | Updated quantity on hand |
| Stock Valuation Layer | With backdated timestamp for inventory value |
| Journal Entry | Accounting entry with the historical date |
Stock move created with the historical date
Journal entry with backdated date
How to Use
Method 1: Individual Adjustment
- Go to Inventory > Operations > Historical Adjustments
- Click New
- Select Product, Location, and Adjustment Date
- The system calculates Current Qty (stock at that date)
- Enter Target Qty (what it should have been)
- Review Today Qty After (impact on current stock)
- Click Apply Adjustment
Method 2: Bulk Load by Location
- Click Load by Location button
- Select Adjustment Date (defaults to Dec 31 of previous year)
- Choose Location or check All Internal Locations
- Click Load Products then Create Adjustments
- Set target quantities and apply
Stock valuation layer with backdated timestamp
Perfect For
|
Year-End Closing
Correct December 31st stock quantities after discovering discrepancies in January |
Audit Adjustments
Make corrections on the exact date required by auditors |
|
POS Session Delays
Fix stock when POS sessions close after midnight but sales were from the previous day |
Data Migration
Set opening balances on historical dates during system migrations |
Technical Details
Timezone Handling
Stock moves are created at end of day (23:59:59) in your user's timezone, then converted to UTC. This ensures proper period-end reporting.
Dependencies
stock, stock_account, mail
Access Rights
Stock Users: Read only | Stock Managers: Full access
Support
- Author: Ahmed Nour
- Version: 19.0.1.0.0
- License: LGPL-3
© 2025 Ahmed Nour - Historical Stock Quantity Adjustment for Odoo 19
Please log in to comment on this module