Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
10082 Tampilan

 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

Avatar
Buang
Jawaban Terbai
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>
Avatar
Buang
Jawaban Terbai

style="font-family: yourfont;"

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
7
Apr 18
9671
4
Okt 20
8698
3
Feb 24
10168
1
Nov 23
2647
1
Jun 23
3444