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

How to font change of pdf reports(odoo 15) using custom path of fonts.


Аватар
Отменить
Автор Лучший ответ

You need to first create a your module and then create a static>src>fonts folder and then create a scss folder inside

static>src and inside of  scss folder a create a new scss file.



@font-face {
font-family: PPNeueMontreal-Medium;
src: url('../fonts/PPNeueMontreal-Medium.woff') format("woff"),
url('../fonts/PPNeueMontreal-Medium.otf') format('truetype');
}

.page {
font-family: PPNeueMontreal-Medium;
text-transform: uppercase;
}

and then add this portion in manifest file. 

'assets': {
'web.report_assets_common': [
'my_module/static/src/scss/your_reports.scss',
],

}

Thank you


Аватар
Отменить
Related Posts Ответы Просмотры Активность
2
дек. 23
2890
1
февр. 23
4343
0
апр. 23
1777
1
мар. 23
3534
1
янв. 23
2890