跳至内容
菜单
此问题已终结
2 回复
10072 查看

 I have create a custom module and I want to change the font of some reports .

What are the files that I should be amended ..??

I use Odoo 10

形象
丢弃
最佳答案
Here is example of how you use custom font in your QWEB Reports.
<template id="report_product_image"> 
<t t-call="report.html_container">
<t t-foreach="docs" t-as="o">
<div class="page">
<style type="text/css">
         <![CDATA[/* United */
         @font-face { font-family: ';Comic Sans';
          font-style: heavy;
          font-weight: 300;
          src: local('United'), url(/home/emipro/Desktop/Tejas/comic-sans.otf) format('opentype');
        } 
        ]]>
        </style>
形象
丢弃
最佳答案

style="font-family: yourfont;"

形象
丢弃
相关帖文 回复 查看 活动
7
4月 18
9660
4
10月 20
8688
3
2月 24
10165
1
11月 23
2640
1
6月 23
3438