# Stock Inventory Discrepancy

This module adds the capability to show discrepancies for each line in an inventory and to block inventory validation (setting it as ‘Pending to Approve’) when the discrepancy exceeds a user-defined threshold. This is configurable per company through the settings.

Only new group “Validate All inventory Adjustments” will be able to force the validation of those blocked inventories. By default, Stock manager will belong to this group. In addition, Stock Users can validate inventories under the threshold now.

Table of contents

- Configuration
- Usage
- Bug Tracker
- Credits
  - Authors
  - Contributors
  - Maintainers

# Configuration

1. Go to “Inventory > Settings” and select the ‘Inventory Discrepancy Control’ option to block the inventory validation. This should be done for each company.
2. On an Inventory User, you can give them permissions to “Validate Inventory Adjustments” or “Validate Inventory Adjustments excceded threshold”.
3. Enable debug mode.
4. Go to “Inventory > Warehouse Management” > Warehouses > Technical Information page” or “Inventory > Warehouse Management” > Locations”.
5. Modify the “Maximum Discrepancy Rate Threshold” either in a Warehouse or in a location. If set to 0.0 in both the threshold is disabled.

# Usage

If you configured a “Maximum Discrepancy Rate Threshold”.

1. When validating an Inventory Adjustment if some line exceed the Discrepancy Threshold the system will set the inventory’s state to ‘Pending to Approve’ and show the quantity of lines that exceed the threshold.
2. If both WH and location thresholds are configured, the location one has preference.
3. The user with “Validate All inventory Adjustments” rights can force the validation of an inventory pending to approve.

# Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

# Credits

## Authors

- ForgeFlow

## Contributors

- Lois Rilo <lois.rilo@forgeflow.com>
- Andreas Dian Sukarno Putro <andreasdian777@gmail.com>
- Bhavesh Odedra <bodedra@opensourceintegrators.com>
- Héctor Villarreal <hector.villarreal@forgeflow.com>
- Tecnativa:
  - Ernesto Tejeda
  - Carolina Fernandez

## Maintainers

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

This module is part of the OCA/stock-logistics-warehouse project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.