-
-
Notifications
You must be signed in to change notification settings - Fork 787
Open
Labels
Description
When installed stock_inventory & stock_inventory_discrepancy and stock_inventory_lockdown is not installed. Do the following scenario:
- Create an inventory adjustment for 2 products in Stock location
- Begin the adjustment and put some quantities over-passing the threshold
- Do a delivery of one of the products
- Try to apply all the counts, validating the discrepancy.
- You are blocked because of this: https://github.com/odoo/odoo/blob/15.0/addons/stock/models/stock_quant.py#L346
- The user does not see any error message not any window.
- None of the counts are applied, even when the issue is in one single product.
This is reproducible in runboat, for example: http://oca-stock-logistics-warehouse-15-0-6c43ef54f885.runboat.odoo-community.org/web
There are a few ways we could handle this:
- Automatically accept the Counted Quantity, even if the On Hand Quantity has changed in the meantime.
- Show a confirmation window during validation, displaying the new On Hand Quantity, and allowing the user to confirm or update the Counted Quantity.
- Use stock_inventory_lockdown, but that is not always desired.
If you have faced this issue and have some recommendations I am open to different ideas.