Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
7306 Zobrazení

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


Avatar
Zrušit
Autor Nejlepší odpověď

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


Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
pro 23
2886
1
úno 23
4333
0
dub 23
1776
1
bře 23
3526
1
led 23
2885