Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to specify column width in tree view

Tags:

odoo

I'm using OpenERP 6.0.4 GTK client and the product tree view comes up with the UoM column too wide (wider than the product name). Where is the place to control the column width in a tree view ?

like image 527
PeterMmm Avatar asked Dec 27 '25 16:12

PeterMmm


2 Answers

Techically this whole is game of CSS but if you really courious and wanna check, How stuff going on then on OpenERP Web Project under addons/web/static/src/css/base.css check for the class oe_list_content you see width are 100% at rlative postion but each field type has their own attrib too. If you check stuff with Firebug you will each cell has mutiple CSS but oe_list_content in common, so all re kept in same tr, td at rleative position.

Thank You.

like image 78
ifixthat Avatar answered Dec 31 '25 10:12

ifixthat


I guess you can't. The closest thing would be to use the colspan="x" field attribute, but unfortunately that doesn't work in tree views.

like image 39
Daniel Reis Avatar answered Dec 31 '25 08:12

Daniel Reis