Skip to Content
Menu
This question has been flagged
2 Replies
10182 Rodiniai

 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

Portretas
Atmesti
Best Answer
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>
Portretas
Atmesti
Best Answer

style="font-family: yourfont;"

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
7
bal. 18
9740
4
spal. 20
8875
3
vas. 24
10328
1
lapkr. 23
2767
1
birž. 23
3523