Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
7313 มุมมอง

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
2886
1
ก.พ. 23
4337
0
เม.ย. 23
1776
Override report_invoice_document แก้ไขแล้ว
1
มี.ค. 23
3528
Studio : bank details on Invoice แก้ไขแล้ว
1
ม.ค. 23
2886