Odoo Help


What is the effect (presentation) on the Chart of Anallytic Account tree view ?

on 8/3/14, 5:25 AM 1,014 views

As the tree has a hierarchical presentation of the analytic accounts, I would like to know how it is done please ?


<record id="view_account_tree" model="ir.ui.view">

    <field name="name">account.account.tree</field>

    <field name="model">account.account</field>

    <field name="field_parent">child_id</field>

    <field name="arch" type="xml">

        <tree colors="blue:type == 'view';black:type in ('other','receivable','payable','consolidation');gray:type == 'closed'" string="Chart of accounts" toolbar="1" >

            <field name="code"/>

            <field name="name"/>

            <field name="debit"/>

            <field name="credit"/>

            <field name="balance"/>

            <field name="company_currency_id"/>

            <field name="company_id" groups="base.group_multi_company"/>

            <field name="type"/>

            <field name="parent_id" invisible="1"/>




<record id="action_account_tree" model="ir.actions.act_window">

    <field name="name">Chart of Accounts</field>

    <field name="res_model">account.account</field>

    <field name="view_type">tree</field>

    <field name="view_id" ref="view_account_tree"/>

    <field name="domain">[('parent_id','=',False)]</field>


About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 8/3/14, 5:25 AM
Seen: 1014 times
Last updated: 1/9/17, 3:27 PM