Odoo Help

0

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

By
mohsel
on 8/3/14, 5:25 AM 654 views

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

0

<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"/>

        </tree>

    </field>

</record>

<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>

</record>

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

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.

Register

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)

Stats

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