Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
10222 Ansichten

 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
Verwerfen
Beste Antwort
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
Verwerfen
Beste Antwort

style="font-family: yourfont;"

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
7
Apr. 18
9797
4
Okt. 20
8996
3
Feb. 24
10443
1
Nov. 23
2851
1
Juni 23
3618