Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
10935 Переглядів

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.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
квіт. 22
22332
4
трав. 16
7560
0
бер. 15
3100
1
бер. 15
3658
1
бер. 15
7458