Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
10149 Переглядів

 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

Аватар
Відмінити
Найкраща відповідь
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>
Аватар
Відмінити
Найкраща відповідь

style="font-family: yourfont;"

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
7
квіт. 18
9710
4
жовт. 20
8814
3
лют. 24
10260
1
лист. 23
2721
1
черв. 23
3484