Odoo Help


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.


How to change column width in tree view one2many,many2many

on 8/1/13, 1:50 PM 8,509 views

There is a way to change the width of a column in a tree view?

Have you tried that : <field name="name" width="100"/> with the size you want in width ?

on 8/1/13, 2:15 PM

@Felipe, is the issue solved?? I am also facing the same problem here... provide me the detail

Atchuthan - Technical Consultant, Sodexis Inc
on 12/17/13, 12:50 AM
Andrius Preimantas
On 8/1/13, 2:12 PM

You can do that with css. First you need to add your own css stylesheet (check help.openerp.com/question/5783/how-to-add-a-custom-css/ on how to do that)

Then, inside your css, you can select your desired column with css attribute selector (www.w3.org/TR/selectors/#attribute-selectors) just like that:

[data-id="name"] {
    width: 200px;

Of course, you need to fine-grain your selections.

I don't believe custom css works in tree view. Can anyone confirm this?

tim diamond
on 11/8/13, 11:31 AM

tim: got it working?

on 2/27/15, 5:53 PM

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

2 follower(s)


Asked: 8/1/13, 1:50 PM
Seen: 8509 times
Last updated: 11/23/15, 6:56 AM