Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
10976 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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>

Awatar
Odrzuć
Autor

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

Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
kwi 22
22372
4
maj 16
7589
0
mar 15
3135
1
mar 15
3683
1
mar 15
7480