Odoo Help


How to aligned field in view tree

on 10/21/14, 6:18 AM 621 views


How to aligned field in view tree

my code

<record id="view_product_tarif_tree" model="ir.ui.view">
            <field name="name">view.myproduct.tree</field>
            <field name="model">product.product</field>
            <field name="inherit_id" ref='product.product_product_tree_view' />
            <field name="type">tree</field>
            <field name="arch" type="xml">
            <xpath expr="/tree/field[@name='state']"
                    position="after" >
                    <field name='p_achat_ht' />
                    <field name='r_p'  />
                    <field name='p_achat_ht_net'/>
                    <field name='tva_p'/>
                    <field name='p_achat_ttc'/>
                    <field name='p_achat_ht_pgd'/>
                    <field name='p_achat_ttcd'/>
                    <field name='p_vente_ht'/>
                    <field name='p_vente_ttc'/>
                    <field name='p_vente_htd'/>
                    <field name='p_vente_ttcd'/>
                    <field name='marge_p'/>
                    <field name='marge_pd'/>
                    <field name='prix_d'/>
                    <field name='devise'/>
                    <field name='t_c'/>
                    <field name='fret_p'/>
                    <field name='ean13'/>




Techno-Functional Associate with 6+ years of experience in Odoo (formerly known as OpenERP).

On 10/21/14, 7:34 AM

You can't align fields in Tree View... Odoo Architecture dynamically does aligning/spacing the columns in the Tree view

thanks for your help

on 10/21/14, 9:21 AM

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.


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: 10/21/14, 6:18 AM
Seen: 621 times
Last updated: 3/16/15, 8:10 AM