Monday, October 28, 2019
1 change
New functionality added to Odoo
Warehouse users can now confirm when a stock location is empty or immediately record a small inventory adjustment during picking validation. This helps keep inventory records accurate day to day and reduces the need for large periodic stock corrections.
Original PR description
**Feature** Whenever a location is theoriticaly completely empty, the user can now either confirm the empty location or adjust the inventory. This allows to keep a more consistent inventory in the day-to-day work by making small inventory adjustment from times to times instead of doing big inventory adjustments more episodically. **Technical implications** This needed some refactoring on `stock_picking` and `stock_batch_picking` because it was not possible to add a wizard in the previous validation flow of `stock_picking`. Furthermore, pickings can now trigger inventory adjustments that need to be validated at the same time than their original picking. In order to achieve this, a field `inventory_ids` was added on `stock_picking`, `button_validate`will check if there's any inventory linked to the picking that needs to be validated right after the validation of the picking itself. TaskID: 1938108