Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
10959 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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>

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Câu trả lời hay nhất

@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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 22
22355
4
thg 5 16
7584
0
thg 3 15
3128
1
thg 3 15
3677
1
thg 3 15
7471