stock_rule_reserve_max_quantity
This module extends chained stock reservation to support reserving the total quantity done in previous moves when it exceeds the demanded quantity, provided the stock rule has the reserve max quantity flag enabled.
Key Features
- stock.rule: Adds a 'Reserve Max Quantity' boolean field to control maximum quantity reservation in stock rules.
- stock.move: Overrides the _update_reserved_quantity method to calculate reservation need based on total done quantities from origin moves when the flag is active.
- warehouse: Enables multi-step outgoing shipments to reserve excess picked quantities in chained moves.