Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
10101 Представления

 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
9683
4
окт. 20
8712
3
февр. 24
10187
1
нояб. 23
2661
1
июн. 23
3448