跳至內容
選單
此問題已被標幟
3738 瀏覽次數

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?

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
7月 24
1437
1
7月 24
1478
1
12月 22
2295
2
3月 18
19534
1
3月 15
3733