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

Module: Analytic Accounting

Entity: account.analytic.plan

Compute Method: _compute_root_id

Inputs Method Outputs
for plan in self.sudo():
            plan.root_id = int(plan.parent_path[:-1].split('/')[0]) if plan.parent_path else plan

Back to entity