Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
11172 Weergaven

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

Avatar
Annuleer
Beste antwoord

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>

Avatar
Annuleer
Auteur

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

Beste antwoord

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

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
apr. 22
22595
4
mei 16
7773
0
mrt. 15
3354
1
mrt. 15
3804
1
mrt. 15
7680