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

 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;"

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
7
เม.ย. 18
9751
4
ต.ค. 20
8906
3
ก.พ. 24
10353
1
พ.ย. 23
2789
1
มิ.ย. 23
3542