Odoo Help


CSS Style placed in Base.css not applying

Michael Thomas
on 1/6/15, 12:16 PM 1,045 views

In openerp 7 I have some columns I want to style (set max width). So I have followed the instructions at https://www.odoo.com/forum/help-1/question/changing-column-widths-tree-view-35981, which recommend the following:

xml : <tree string="Tree String" version="7.0" class="my_class"> <field name="my_field" />

css : .my_class [data-id="my_field"]{width: 1000px;}

I have done so, and added the following style for testing:

.x-portal [data-id="name"]{
    width: 10px;
    color: blue;

While I can see that the table has been assigned the x-portal class, inspect element reveals that it does not recognize that style, and has not added to the element. I see it pulling all the other appropriate styles from base.css, but not mine. How can I make openerp recognize the css I placed in base.css, or where should I place css so that it will be called without me making a custom module just for this purpose?

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: 1/6/15, 12:16 PM
Seen: 1045 times
Last updated: 3/16/15, 8:10 AM