For each analytic account, defines the root analytic account, i.e. the parent account the most high up in the hierarchy. If there is no parent account, the root account is the account itself.
This module is useful for analytic reporting (via bi_view_editor for instance) of accounts organized in hierarchy.
The parent account cannot be used for reporting if there is more or less than two hierarchical layers, and if the parent accounts are used directly as account in the analytic lines.
Having root parent analytic account enable aggregate reporting for hierarchy of accounts that is not
For instance, let's assume we have a analytic account hierarchy like:
- Account A / Account AB / Account ABC
- Account B
- Account C / Account CB
If we group by parent analytic account we get:
- Account A
- Account A / Account AB
- Account C
- no value
If we group by root analytic account we get:
- Account A
- Account B
- Account C
Which is much cleaner.
auto_awesome What this module does
AI-generated from the code · Odoo 16.0Adds a computed field on analytic accounts showing the top-most parent account in the hierarchy, so users can group and report on entire analytic account trees.
This module extends analytic accounts with a new stored field called "Top Parent Analytic Account". For every analytic account, Odoo automatically finds the highest account in its parent hierarchy and stores it in that field.
- If an account has no parent, the top parent is the account itself.
- If an account has parents, Odoo walks up the chain until it reaches the account with no parent, and stores that one.
The value is computed automatically and kept up to date whenever the parent changes, so users do not have to fill it in manually. It appears on the analytic account form as a read-only field.
This is useful for analytic reporting: instead of grouping by the direct parent (which only works well with a simple two-level hierarchy), users can group analytic lines by the top parent account and get consolidated figures for a whole branch of the hierarchy, even when accounts are nested several levels deep.
The module only touches the account.analytic.account model and depends on the analytic parent module that provides the parent relationship. No new menus, buttons, reports or scheduled actions are added.
Depends on
Models and fields (1)
- account.analytic.account · extends an existing modelroot_analytic_account_id (Top Parent Analytic Account)
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: 2 confirmed, 7 with no information of 9 versions.
Sources · Odoo 16.0
Confirmed on 2026-11-03 in branch 16.0 of OCA/account-analytic.
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.