Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Extra Tools
  3. All In One Hierarchy View: Account Parent & All Models v 19.0
  4. Sales Conditions FAQ

All In One Hierarchy View: Account Parent & All Models

by Code Sparks https://code-sparks.odoo.com
Odoo

$ 20.02

v 19.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Contacts (contacts)
• Invoicing (account)
• Discuss (mail)
Lines of code 1467
Technical Name cs_hierarchical_view
LicenseLGPL-3
Websitehttps://code-sparks.odoo.com
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Contacts (contacts)
• Invoicing (account)
• Discuss (mail)
Lines of code 1467
Technical Name cs_hierarchical_view
LicenseLGPL-3
Websitehttps://code-sparks.odoo.com
Code Sparks Logo

All In One Hierarchy View: Account Parent & All Models

by Code Sparks

Transform standard Odoo List Views into expandable hierarchical structures using parent-child relationships.

Visualize Account Parent hierarchies and apply the same structured view across all Odoo models that support parent-child relationships.

Easily expand and collapse multi-level records directly inside the List View for improved clarity, organization, and navigation.

Universal Hierarchical List View for Odoo

All In One Hierarchy View works seamlessly across all Odoo environments. It enables users to visualize Account Parent hierarchies and apply the same structured view across all Odoo models that support parent-child relationships.

Odoo Community Edition
Odoo Enterprise Edition
Odoo.sh Cloud Platform

How to use

You can use the hierarchy view in two ways: on any model (global) or specifically for Chart of Accounts. For any model, add parent/child fields, then define the view and action. For Accounts, this module already includes the setup.

For any model (global)

Replace your.model with your model's technical name (e.g. product.category, res.partner).

1. Python file

from odoo import models, fields

class YourModel(models.Model):
    _inherit = 'your.model'

    parent_id = fields.Many2one('your.model', string='Parent')
    child_ids = fields.One2many('your.model', 'parent_id', string='Children')

2. XML view

<record id="view_your_model_hierarchy" model="ir.ui.view">
    <field name="name">your.model.hierarchy</field>
    <field name="model">your.model</field>
    <field name="arch" type="xml">
        <cs_hierarchy string="Hierarchy"
                   default_order="name"
                   parent_field="parent_id"
                   child_field="child_ids">
            <field name="name"/>
        </cs_hierarchy>
    </field>
</record>

3. Action (add cs_hierarchy to view mode)

<record id="your_module.action_your_model" model="ir.actions.act_window">
    <field name="name">Your Model</field>
    <field name="res_model">your.model</field>
    <field name="view_mode">cs_hierarchy,list,form</field>
</record>

For Chart of Accounts (Account)

This module already adds hierarchy to account.account. No extra code is required; after installing, open Accounting → Configuration → Chart of Accounts and switch to the Hierarchy view. If you need to customize, here is what the module does:

1. Python file (account.account)

from odoo import models, fields

class AccountAccount(models.Model):
    _inherit = 'account.account'

    parent_id = fields.Many2one('account.account', string='Parent Account')
    child_ids = fields.One2many('account.account', 'parent_id', string='Children Accounts')

2. XML view

<record id="view_account_account_hierarchy" model="ir.ui.view">
    <field name="name">account.account.hierarchy</field>
    <field name="model">account.account</field>
    <field name="arch" type="xml">
        <cs_hierarchy string="Hierarchical Accounts"
                   default_order="name"
                   parent_field="parent_id"
                   child_field="child_ids">
            <field name="name"/>
            <field name="code"/>
        </cs_hierarchy>
    </field>
</record>

3. Action (Chart of Accounts)

<record id="account.action_account_form" model="ir.actions.act_window">
    <field name="name">Chart of Accounts</field>
    <field name="res_model">account.account</field>
    <field name="view_mode">cs_hierarchy,list,form,activity</field>
    <field name="search_view_id" ref="account.view_account_search"/>
    <field name="view_id" ref="account.view_account_list"/>
</record>

Explore this module

Overview

Understand the purpose and benefits

Features

View key capabilities and tools

Screenshots

See key screenshots of this module

Overview

The All In One Hierarchy View: Account Parent & All Models module enhances Odoo's standard List View by introducing a powerful expandable parent-child hierarchical structure.

  • Display Account Parent hierarchy directly inside the List View.
  • Support all models that use parent-child (parent_id) relationships.
  • Expand and collapse multi-level records dynamically.
  • Improve visualization of structured business data.
  • Work seamlessly with standard and custom Odoo models.
This module is ideal for businesses that manage hierarchical data such as Chart of Accounts, product categories, departments, task structures, and any multi-level organizational model, providing clearer structure and improved navigation within Odoo.

Features

Display Account Parent hierarchy directly inside the List View.

Universal support for all models with parent-child (parent_id) relationships.

Expand and collapse multi-level hierarchical records dynamically.

Support for unlimited nested hierarchy levels.

Seamless integration with standard and custom Odoo models.

Screenshots

01

Install module/application.

02

Once the module is installed, you can see the Account Parent hierarchy directly inside the List View. Go to Accounting → Configuration → Chart of Accounts and switch to the Hierarchy view.

03

User can also use this module to display the hierarchy of any model that uses the parent_id field.
For example, in contact model, there is a parent_id field that is used to display the hierarchy of the contacts.
Go to Contacts → Contacts and switch to the Hierarchy view.

Support Agent
Free 30 Days Support

We will provide FREE 30 days support for any doubt, queries, and bug fixing (excluding data recovery) or any type of issues related to this module. This is applicable from the date of purchase.

Need Help with All In One Hierarchy View?

Have questions, need technical assistance, or want to request enhancements? We're here to help you get the most out of All In One Hierarchy View: Account Parent & All Models for better hierarchical data visualization inside Odoo.

code-sparks.odoo.com
info.codesparks@gmail.com

We are committed to helping you implement structured, scalable, and easy-to-navigate hierarchical views across your Odoo system.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with