Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
11046 มุมมอง

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.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
How to get company name in qweb report? แก้ไขแล้ว
1
เม.ย. 22
22449
4
พ.ค. 16
7646
0
มี.ค. 15
3175
1
มี.ค. 15
3731
1
มี.ค. 15
7527