Odoo Help

Welcome!

This community 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.

0

How to aligned field in view tree

By
oussama
on 10/21/14, 6:18 AM 578 views

Hi

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'/>
                    
            </xpath>
            </field>
        </record>

 

Thanks

0

deep

--deep--
1617
| 5 4 7
Bengaluru, India
--deep--

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

deep
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

oussama
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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 10/21/14, 6:18 AM
Seen: 578 times
Last updated: 3/16/15, 8:10 AM