跳至内容
菜单
此问题已终结
2 回复
11171 查看

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
22595
4
5月 16
7773
0
3月 15
3354
1
3月 15
3804
1
3月 15
7680