تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
10100 أدوات العرض

 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;"

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
7
أبريل 18
9683
4
أكتوبر 20
8712
3
فبراير 24
10187
1
نوفمبر 23
2661
1
يونيو 23
3448