跳至內容
選單
此問題已被標幟
1 回覆
7330 瀏覽次數

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


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
12月 23
2892
1
2月 23
4346
0
4月 23
1778
1
3月 23
3536
1
1月 23
2891