Stock Move Line Change Lot
Improve the standard process of changing a lot on a move line.
When changing a lot on a move line, check available quantity and, if necessary, switch reservation with other moves lines.
It never "steal" for already picked lines (quantity done \> 0). However, it can switch with pickings already printed. This is required for drill-through locations where you need to invert the reservations.
If the new lot only matches partially the initial reserved quantity, the reservation of this line will decrease to match what is available and a new move line will be created to recover the missing quantity.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0When you change the lot on a stock move line, this module checks if the new lot is available and automatically frees up reservations from other move lines if needed, so you can switch lots without errors.
This module improves the standard process of changing a lot on a stock move line. When you try to change the lot, it checks if the new lot has enough available quantity in the same location and package. If not, it looks for other move lines that have the same lot reserved but are not yet picked, and frees their reservation to make the quantity available. It never takes quantity from lines that are already picked (quantity done > 0), but it can take from pickings that are already printed.
If the new lot only partially covers the original reserved quantity, the reservation on the current line is reduced to what is available, and a new move line is created to recover the missing quantity. The module also updates the package if the new lot is only available in a specific package.
It adds a check to prevent changing to a lot of a different product, raising an error if you try. The changes appear when you edit the lot on a stock move line, typically from a transfer or inventory adjustment screen. The module extends the stock.move.line model and interacts with stock.quant and stock.move to manage reservations.
Depends on
Required by other modules
Models and fields (1)
- stock.move.line · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 18.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: 2 confirmed, 7 with no information of 9 versions.
Sources · Odoo 16.0
Confirmed on 2026-11-03 in branch 16.0 of OCA/stock-logistics-workflow.
terminal Installation and usage
No verified informationInstallation 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.