stock_move_line_change_lot
This module improves the standard process of changing a lot on a move line by checking available quantity and managing reservations accordingly.
Key Features
- stock.move.line: When changing a lot on a move line, check available quantity and, if necessary, switch reservation with other moves lines.
- stock.move.line: 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.
- stock.move.line: 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.
- stock.move.line: Allows changing lot to a different one if available in the same location.
- stock.move.line: Handles partial availability by reducing the quantity on the line and creating a new line for the remaining.
- stock.move.line: Can switch reservations with other move lines that are not picked.
- stock.move.line: Does not steal from picked lines.
- stock.move.line: Handles packages correctly when changing lots.
- stock.move.line: Can change lot even if it's in a package.