Odoo Help


How to change column width in tree view one2many,many2many

on 8/1/13, 1:50 PM 12,681 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

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

2 follower(s)


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