콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
11040 화면

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
22447
4
5월 16
7639
0
3월 15
3171
1
3월 15
3727
1
3월 15
7526