Skip to content
Health
60/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 1 month ago
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 16.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.1 MB
Module directory on disk
Code analysis 1 migration note 5 models 7 views 0 HTTP endpoints

Description

This module adds a quant lock mechanism based on standard stock reservations. When a quant is locked, its non-reserved quantity is reserved by a dedicated stock picking so it cannot be consumed by other operations.

The lock operation is done through a selectable route explicitly configured for quant locking: the push rule of the route defines the operation type, the destination and the grouping of the lock transfer. Unlocking cancels the lock picking, which releases the corresponding reservation while keeping full traceability through standard Odoo stock documents.

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
quant_search_view_quant_lock stock.quant.search.quant.lock stock.quant search Inherits stock.quant_search_view
stock_location_route_form_view stock.route.form.quant.lock stock.route form Inherits stock.stock_location_route_form_view
view_stock_quant_form_editable_quant_lock stock.quant.form.editable.quant.lock stock.quant form Inherits stock.view_stock_quant_form_editable
view_stock_quant_lock_wizard_form stock.quant.lock.wizard.form stock.quant.lock.wizard form New
view_stock_quant_tree_editable_quant_lock stock.quant.tree.editable.quant.lock stock.quant tree Inherits stock.view_stock_quant_tree_editable
view_stock_quant_tree_quant_lock stock.quant.tree.quant.lock stock.quant tree Inherits stock.view_stock_quant_tree
view_warehouse stock.warehouse.form.quant.lock stock.warehouse form Inherits stock.view_warehouse

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 5

New fields (1)
  • quant_lock_quant_id Many2one → stock.quant
    comodel_name='stock.quant' copy=False index=True string='Locked quant'
Public methods (0)

No public methods.

New fields (3)
  • is_locked_by_picking Boolean
    compute='_compute_is_locked_by_picking' index=True store=True string='Locked by issue'
  • lock_move_count Integer
    compute='_compute_lock_move_count'
  • lock_move_ids One2many → stock.move
    comodel_name='stock.move' inverse_name='quant_lock_quant_id' readonly=True string='Lock Moves'
Public methods (3)
  • action_open_lock_wizard(self)
  • action_unlock_quant(self)
  • action_view_lock_moves(self)

New fields (2)
  • quant_ids Many2many → stock.quant
    comodel_name='stock.quant' readonly=True string='Quants'
  • route_id Many2one → stock.route
    comodel_name='stock.route' domain="[('allow_quant_lock', '=', True)]" required=True string='Route'
Public methods (2)
  • action_lock(self)
  • default_get(self, fields_list)

New fields (1)
  • allow_quant_lock Boolean
    help='If checked, this route can be used to lock stock quants. The lock transfer is created by the push rule of this route whose source location contains the location of the quant to lock.' string='Allow quant lock'
Public methods (0)

No public methods.

New fields (1)
  • quality_check_route_id Many2one → stock.route
    check_company=True comodel_name='stock.route' help='Default route used to lock the quants of the warehouse for a quality check.' ondelete='restrict' string='Quality Check Route'
Public methods (1)
  • create(self, vals_list)
    @api.model_create_multi