Stock Realign Moves and Quants
A bug in Odoo 12 leads to the desynchronisation of the stock quants and the stock move lines. The root cause has yet to be found. This modules fixes the symptoms and not the cause. It aims to
- Realign the stock quants and the stock move lines
- Correct on the fly future desynchronisation
To do that, we assume the source of truth are the move lines rather than the quants.
More information on this issue: https://github.com/odoo/odoo/issues/62139
auto_awesome What this module does
AI-generated from the code · Odoo 12.0Adds a wizard that realigns stock quantities with recorded stock moves, creating a fixing inventory when discrepancies are found. It also silently corrects some reservation errors instead of blocking users.
This module helps when the quantities shown in stock no longer match the actual stock movements recorded in Odoo. It assumes the stock move lines are correct and uses them to rebuild the quantities.
Where it appears: - A new menu "Stock Fix Operations" under Inventory configuration, visible only to administrators, containing "Align Stock Moves and Quants". - The wizard screen asks for a Start Date (defaulting to the first stock move) and has an "Align Stock Moves and Quants" button.
What it does: - When launched, it compares completed stock moves since the start date with the current quantities in internal locations. - If differences are found, it creates a draft inventory adjustment named "Fix stock wizard ..." containing the corrected quantities and opens it for review. - If no differences are found, it shows an error message saying no discrepancies were found.
Automatic behaviour: - It also intercepts the error "It is not possible to unreserve more products ... than you have in stock" during reservation updates. Instead of stopping the operation, it logs a warning, adjusts the available quantity, and continues unreserving what is possible.
It touches stock.quant, stock.move.line, stock.inventory, stock.inventory.line, product.product and stock.quant.package.
Depends on
Menus it adds
Models and fields (1)
- align.move.quant.wizard · new modelstart_date (Start Date)
Text generated by AI (DeepSeek) from reading the Odoo 12.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 12.0
Confirmed on 2026-11-03 in branch 12.0 of OCA/stock-logistics-warehouse.
terminal Installation and usage
OCA documentation · Odoo 12.0Usage
Source · Odoo 12.0This module adds a wizard in the menu
Inventory > Configuration > Align Stock Moves and Quants
This wizard is only accessible to admin user.
In this wizard, enter the date from which you want to fix the alignement. Good dates are the first ever move (default) or the switch to Odoo 12.
Upon validation, the wizard
- computes the stock based on the stock move lines,
- fixes the quants with that value (cf server logs),
- opens an inventory with all the fixed product.
Both columns, theoretical quantity and verified quantity display the same value. This is normal, theoretical quantity is based on the new fixed quants and verified quantity is set by the wizard based on the moves.
This is a good time to make an actual inventory on those product and fix the values in the inventory.
Finally, click on validate to finish the process.
This module also adds a fix to quant to prevent blocking the pickings in the future.
No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.