OdooWiki OCA HUB

Stock Location Template

stock_location_template folder_open OCA/stock-logistics-warehouse open_in_new
Uncategorised License: AGPL-3

This module introduces the concept of location template. In the template one can define the number of cells (sub-location) that all locations with the same template should have. It also allows to define a nomenclature that all locations automatically generated from the template will follow.

auto_awesome What this module does

AI-generated from the code · Odoo 12.0

Create location templates that define how many sub-locations (cells) a location should have and how they are named, then automatically generate those sub-locations when a location is assigned to the template.

This module adds a new concept called a Location Template. You can create templates under Inventory > Configuration > Location Templates. Each template defines the number of cells (sub-locations), a naming pattern using %c as a placeholder for the cell number, the number of digits to use, and the starting number. A preview shows an example of the generated cell name.

When you create or edit a stock location, you can assign a location template to it. If the template has 'Auto Generate Stock Locations' enabled, Odoo will automatically create the sub-locations under that location, following the template's naming pattern. For example, a template with 5 cells, pattern 'CELL-%c', 2 digits, and starting number 1 will create CELL-01, CELL-02, CELL-03, CELL-04, CELL-05.

The module also adds a smart button on the template form showing how many locations use that template, and you can archive templates. On the location form and search view, a new field 'Location Template' is added so you can filter locations by template.

A restriction prevents changing the template of a location if it already has sub-locations that were automatically generated from a template. This avoids inconsistencies. The module works with the standard Inventory app and respects company settings.

Depends on

stock

Menus it adds

menu_action_location_template_form
Models and fields (2)
  • stock.location · extends an existing modellocation_template_id (Location Template), auto_generated_from_template (Location generated from template)
  • stock.location.template · new modelname (Name), active, digits (Digits to use in nomenclature), cells_nbr (Number of Cells), company_id (Company), location_ids (Stock Location), starting_nbr (Starting number), location_count (# Locations), cell_name_example (Cell Naming example), cells_nomenclature (Cells Nomenclature), auto_generate_locations (Auto Generate Stock Locations)

Text generated by AI (DeepSeek) from reading the Odoo 12.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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 12.0

Confirmed on 2026-11-03 in branch 12.0 of OCA/stock-logistics-warehouse.

terminal Installation and usage

OCA documentation · Odoo 12.0

Go to Inventory > Configuration > Location Templates and Create your own template. Then go to Inventory > Configuration > Locations and select a specific template in a location. New locations will be generated if the Auto Generate Stock Locations option is selected in the template.

No verified information in OCA: Installation, Configuration.

info

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.