Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Test ORM

Entity: test_orm.category

Compute Method: _compute_depth

Inputs Method Outputs
for cat in self:
            cat.depth = cat.parent_path.count('/') - 1

Back to entity