stock_move_auto_assign_auto_release
This module automatically releases stock moves when a move is set to done and the product becomes available, using queue jobs to minimize impact on user operations.
Key Features
- stock.move: Computes and searches for moves that are allowed to be auto-released based on state, need_release, available quantity, and picking's auto release allowance.
- stock.picking: Computes and searches for pickings that are allowed to be auto-released based on state, printed status, and release readiness.
- product.product: Provides methods to retrieve auto-releasable moves and to trigger auto release of associated pickings via queue jobs.
- stock: Enqueues queue jobs for auto-assigning and auto-releasing stock moves when a move is completed, with the release job depending on the assign job.
- stock.move: Filters locations to only include those under warehouse view locations for auto release processing.