跳至內容
選單
此問題已被標幟
2 回覆
11326 瀏覽次數

I am working in qweb report but Now I can not call the css style ?

please help me how can i call css style?

thank you so much

頭像
捨棄
最佳答案

create a css file in your_module/static/css/your_file.css.

your_file.css:

.back_ground {
    background: #e74c3c;
}

In __openerp.py__ file:

'css': ['static/src/css/your_file.css'],

Call it In your xml file:

<p class="back_ground">Test</p>

頭像
捨棄
作者

I trying this code but still not work with Qweb report please give me hint about this issue

最佳答案

@Vasanth gave you good answer, but if you work in version 8.0 then you may find helpful this answer as adding of css/js files is a bit different in v8.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
4月 22
22776
4
5月 16
7906
0
3月 15
3495
1
3月 15
3898
1
3月 15
7812