TIP: You can type at any time to perform a new search.
Stock Inventory Discrepancy
stock_inventory_discrepancy · OCA/stock-logistics-warehouse
- Repository
- OCA/stock-logistics-warehouse · module folder · Try on Runboat
- Module version
- 1.1.0
- Category
- Warehouse
- Folder size
- 0.19 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/stock-logistics-warehouse
- Last tracking update
- 2026-08-07 08:42:50
- Authors
- Odoo Community Association (OCA), ForgeFlow
- Maintainers
- Odoo Community Association (OCA), ForgeFlow
- Committers
- Carlos Lopez, Weblate, OCA-git-bot, oca-ci, Arnau
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- stock_cycle_count, stock_inventory_verification_request
- Description
Adds the capability to show the discrepancy of every line in an inventory and to block the inventory validation (setting it as 'Pending to Approve') when the discrepancy is greater than an user defined threshold. 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.
Code Analysis ⓘ
Views touched (7)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
confirm_discrepancy_wizard |
confirm.discrepancy.wiz.form | confirm.discrepancy.wiz | form | New |
quant_search_last_has_over_discrepancy |
stock.quant.last_has_over_discrepancy.search | stock.quant | search | Inherits stock.quant_search_view |
stock_quant_confirm_discrepancy |
stock.quant | tree | Inherits stock.view_stock_quant_tree_inventory_editable | |
view_location_form |
Location form - cycle count extension | stock.location | form | Inherits stock.view_location_form |
view_stock_config_settings |
res.config.settings - inventory_discrepancy | res.config.settings | form | Inherits stock.res_config_settings_view_form |
view_stock_quant_tree_inventory_editable |
stock.quant | tree | Inherits stock.view_stock_quant_tree_inventory_editable | |
view_warehouse |
Warehouse form - Inventory Discrepancy extension | stock.warehouse | Inherits stock.view_warehouse |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (6)
New fields (1)
-
discrepancy_quant_idsMany2many → stock.quantcomodel_name='stock.quant'default=_default_discrepancy_quant_idsreadonly=True
-
button_apply(self)
New fields (1)
-
inventory_discrepancy_enableBooleanhelp='Block validation of the inventory adjustment if discrepancy exceeds the threshold.'string='Inventory Discrepancy Control'
No public methods.
New fields (1)
-
inventory_discrepancy_enableBooleanhelp='Block validation of the inventory adjustment if discrepancy exceeds the threshold.'readonly=Falserelated='company_id.inventory_discrepancy_enable'string='Inventory Discrepancy Control'
No public methods.
New fields (2)
-
discrepancy_thresholdFloatdigits=(3, 2)help="Maximum Discrepancy Rate allowed for any product when doing an Inventory Adjustment. Thresholds defined in Locations have preference over Warehouse's ones."string='Maximum Discrepancy Rate Threshold' -
propagate_discrepancy_thresholdBooleanhelp='Propagate Maximum Discrepancy Rate Threshold to child locations'string='Propagate discrepancy threshold'
-
write(self, values)
New fields (3)
-
discrepancy_percentFloataggregator='avg'compute='_compute_discrepancy'compute_sudo=Truedigits=(3, 2)help='The discrepancy expressed in percent with theoretical quantity as basis'store=Truestring='Discrepancy percent (%)' -
discrepancy_thresholdFloatcompute='_compute_discrepancy_threshold'digits=(3, 2)help='Maximum Discrepancy Rate Threshold'string='Threshold (%)' -
has_over_discrepancyBooleancompute='_compute_has_over_discrepancy'search='_search_has_over_discrepancy'
-
action_apply_inventory(self)
New fields (1)
-
discrepancy_thresholdFloatdigits=(3, 2)help='Maximum Discrepancy Rate allowed for any product when doing an Inventory Adjustment. Threshold defined in involved Location has preference.'string='Maximum Discrepancy Rate Threshold'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
- Status
- Open migration PR — not merged yet for this version
- CI status
- checks failing
- Open since
- 261 days ago
- Last activity
- 2 days ago
- Repository
- OCA/stock-logistics-warehouse
- Pull request
- [19.0][MIG] stock_inventory_discrepancy (#2481)