Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
10104 Visualizzazioni

 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
Abbandona
Risposta migliore
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
Abbandona
Risposta migliore

style="font-family: yourfont;"

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
7
apr 18
9684
4
ott 20
8716
3
feb 24
10194
1
nov 23
2666
1
giu 23
3449