Stock Warehouse relationship
This module add relationship on various stock models to warehouses (stock.warehouse).
This is technical modules to be use as base for other modules such as:
- stock_multi_warehouse_security: Add ir rules to restrict user access to a list of warehouses
Following models are linked by this module:
- stock.picking
- stock.move
- stock.move.line
- stock.quant
- stock.quant.package
This module is inspired from the experiences of stock_multi_warehouse_security on version 12.0 but has some key differences on user experience:
auto_awesome What this module does
AI-generated from the code · Odoo 16.0Adds a warehouse field to transfers, moves, move lines, stock on hand and packages, so users can see and filter stock records by warehouse. It is a technical base module used by other apps.
This module links several stock records to a warehouse so that each record knows which warehouse it belongs to.
- On transfers (
stock.picking), the warehouse is taken automatically from the operation type. - On stock moves (
stock.move), the warehouse is filled in automatically when the move is created: from the operation type if one is set, otherwise from the source and destination locations when they point to a single warehouse. - On move lines (
stock.move.line), stock on hand (stock.quant) and packages (stock.quant.package), the warehouse is derived automatically from the related move or location.
All these fields are stored and indexed, which makes searching and grouping fast.
Where it appears: the warehouse field is added to the search filters of moves, move lines, stock on hand and packages, so users can filter these lists by warehouse in the standard Odoo screens.
It does not add menus, buttons, reports or access restrictions by itself. It is a technical foundation meant to be used by other modules, for example to restrict users to a list of warehouses.
Depends on
Models and fields (5)
- stock.move · extends an existing modelwarehouse_id
- stock.quant · extends an existing modelwarehouse_id
- stock.picking · extends an existing modelwarehouse_id
- stock.move.line · extends an existing modelwarehouse_id
- stock.quant.package · extends an existing modelwarehouse_id
Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 16.0
Confirmed on 2026-11-03 in branch 16.0 of OCA/stock-logistics-warehouse.
terminal Installation and usage
No verified informationInstallation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.