Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
10076 Widoki

 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

Awatar
Odrzuć
Najlepsza odpowiedź
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>
Awatar
Odrzuć
Najlepsza odpowiedź

style="font-family: yourfont;"

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
7
kwi 18
9664
4
paź 20
8692
3
lut 24
10166
1
lis 23
2644
1
cze 23
3441