コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
10958 ビュー

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
22353
4
5月 16
7584
0
3月 15
3128
1
3月 15
3675
1
3月 15
7471