Stock Inventory Discrepancy
stock_inventory_discrepancy · OCA/stock-logistics-warehouse
-
Security25/25No findings
-
Activity25/25Human commit this month
-
Required by5/250 modules depend on it
-
Maturity25/25In 12 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
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.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
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
-
discrepancy_quant_idsMany2many → stock.quantcomodel_name='stock.quant'default=<expr>readonly=True
-
button_apply(self)
-
inventory_discrepancy_enableBooleanhelp='Block validation of the inventory adjustment if discrepancy exceeds the threshold.'string='Inventory Discrepancy Control'
No public methods.
-
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.
-
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)
-
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, date=None)
-
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…
Loading…
Loading…