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:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
1
回复
7152
查看
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
|
2731 | ||
|
1
2月 23
|
4195 | ||
|
0
4月 23
|
1692 | ||
|
1
3月 23
|
3393 | ||
|
1
1月 23
|
2765 |