Odoo Help


How to call css style in qweb report?

Mohammed Khamis
on 2/17/15, 2:31 AM 3,032 views

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

On 2/17/15, 3:30 AM

create a css file in your_module/static/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

Mohammed Khamis
on 2/25/15, 12:45 AM
On 2/17/15, 5:03 AM

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

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 2/17/15, 2:31 AM
Seen: 3032 times
Last updated: 3/16/15, 8:10 AM