Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
11041 Представления

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
22448
4
мая 16
7643
0
мар. 15
3174
1
мар. 15
3727
1
мар. 15
7527