Add a 'Level' field on Product Categories to show the number of parents a category has (recursively).
auto_awesome What this module does
AI-generated from the code · Odoo 16.0Adds a Level field to product categories showing how deep each category sits in the category hierarchy. The level is calculated automatically and shown in the category list, form and search screens.
This module adds one extra piece of information to product categories: their depth in the category tree.
- A category with no parent has level 0.
- A category whose parent is a top-level category has level 1, and so on.
The value is calculated automatically from the parent category, so users never type it. When a category is moved under another one, its level and the levels of its sub-categories are recalculated.
The new Level column appears in the product category list view, right after the category name, and also in the category form, just before the Parent Category field. It is also available in the category search filters, so users can search or filter categories by their depth.
The module only touches the product category model (product.category) and its existing list, form and search views. It does not change products, prices, stock or accounting. A small demo data set is included showing a parent category with two nested children, useful to see the level values in action.
Depends on
Models and fields (1)
- product.category · extends an existing modellevel
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/product-attribute.
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.