Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Human commit this month
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 12 Odoo series since 8.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.19 MB
Module directory on disk
Code analysis 0 migration notes 6 models 7 views 0 HTTP endpoints

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

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 7

XML IDNameModelTypeStatus
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_ids Many2many → stock.quant
    comodel_name='stock.quant' default=<expr> readonly=True
Public methods (1)
  • button_apply(self)

New fields (1)
  • inventory_discrepancy_enable Boolean
    help='Block validation of the inventory adjustment if discrepancy exceeds the threshold.' string='Inventory Discrepancy Control'
Public methods (0)

No public methods.

New fields (1)
  • inventory_discrepancy_enable Boolean
    help='Block validation of the inventory adjustment if discrepancy exceeds the threshold.' readonly=False related='company_id.inventory_discrepancy_enable' string='Inventory Discrepancy Control'
Public methods (0)

No public methods.

New fields (2)
  • discrepancy_threshold Float
    digits=(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_threshold Boolean
    help='Propagate Maximum Discrepancy Rate Threshold to child locations' string='Propagate discrepancy threshold'
Public methods (1)
  • write(self, values)

New fields (3)
  • discrepancy_percent Float
    aggregator='avg' compute='_compute_discrepancy' compute_sudo=True digits=(3, 2) help='The discrepancy expressed in percent with theoretical quantity as basis' store=True string='Discrepancy percent (%)'
  • discrepancy_threshold Float
    compute='_compute_discrepancy_threshold' digits=(3, 2) help='Maximum Discrepancy Rate Threshold' string='Threshold (%)'
  • has_over_discrepancy Boolean
    compute='_compute_has_over_discrepancy' search='_search_has_over_discrepancy'
Public methods (1)
  • action_apply_inventory(self, date=None)

New fields (1)
  • discrepancy_threshold Float
    digits=(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'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…