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

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
2917
1
лют. 23
4372
0
квіт. 23
1784
1
бер. 23
3605
1
січ. 23
2918