تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
11190 أدوات العرض

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
أبريل 22
22606
4
مايو 16
7811
0
مارس 15
3358
1
مارس 15
3808
1
مارس 15
7683