How to font change of pdf reports(odoo 15) using custom path of fonts.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- Müşteri İlişkileri Yönetimi
- e-Commerce
- Muhasebe
- Envanter
- PoS
- Project
- MRP
Bu soru işaretlendi
1
Cevapla
7149
Görünümler
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Olİlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
---|---|---|---|---|
|
2
Ara 23
|
2730 | ||
|
1
Şub 23
|
4193 | ||
|
0
Nis 23
|
1691 | ||
Override report_invoice_document
Çözüldü
|
|
1
Mar 23
|
3391 | |
Studio : bank details on Invoice
Çözüldü
|
|
1
Oca 23
|
2765 |