Stock Location Is Sublocation
Add methods to be used by other modules. This is not a functional module.
auto_awesome What this module does
AI-generated from the code · Odoo 19.0Adds a technical helper on stock locations so other modules can check whether one location sits inside another. It adds no menus, screens or visible features on its own.
This is a hidden, technical module. It does not add any screen, menu, button, report or setting that a user can see or click.
What it does is extend the existing stock location model (stock.location) with one extra helper method, is_sublocation_of. That method answers a simple question: is this location the same as, or inside, one of the given locations? It compares the stored location hierarchy path, so a child location is recognised as being under its parent.
- By default it returns true if the location is inside any one of the locations passed in.
- It can also be asked to require that the location is inside all of the locations passed in.
Because the module only provides this helper, nothing changes in day-to-day warehouse work by itself. Its purpose is to be used by other modules that need to test location hierarchy, for example to apply rules only to stock stored in a given area of the warehouse. The only Odoo area it touches is stock locations (stock.location). No business rules, checks, default values, emails or scheduled jobs are added by this module.
Depends on
Required by other modules
Models and fields (1)
- stock.location · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 19.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: 2 confirmed, 7 with no information of 9 versions.
Sources · Odoo 19.0
Confirmed on 2026-11-03 in branch 19.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.