Technical archivos de la lista de correo

technical@mail.odoo.com

Avatar

Re: [11.0] Font-family does not work in Qweb reports

por
Bhavesh Selarka
- 09/10/2018 00:46:31
Hi Turkesh,

Thanks for the answer. But I have also done the same thing but not working in V11.

As you can see the report module removed and moved into the web module.

Same way tried but not working.

Regards,
Bhavesh.




On Tue, Oct 9, 2018 at 10:12 AM Turkesh Patel <turkesh4friends@gmail.com> wrote:
Hello,

It works fine just load the font in the asset.

<template id="acs_report_assets_common" name="my_module report assets common" inherit_id="report.assets_common">
        <xpath expr="." position="inside">
            <link href="https://fonts.googleapis.com/css?family=Arial+Narrow" rel="stylesheet"/>
        </xpath>
</template>

And in report give style on page: <div class="page" style="font-family: 'Arial Narrow';">

it will work.

     

Thanks & Regards,

Turkesh Patel

Mob: +91 9033584086

Skype: turkesh4friends

www.almightycs.com






On Mon, Oct 8, 2018 at 3:59 PM Maxence Groine <mgroine@fiefmanage.ch> wrote:
In my experience, when HTML reports worked fine but PDF gen did not, it
was usually because the System Parameter 'web.base_url' had a wrong
value. Is it correctly set to point to your server ?

On Mon, 08 Oct 2018 09:56:29 -0000
Bhavesh Selarka <bhaveshselarka13@gmail.com> wrote:

> When I change report type to HTML. It will show and working fine. But
> when its print into original PDF report. So pdf render time it is not
> working. Regards,
> On Mon, Oct 8, 2018 at 1:38 PM iWesabe < odoo@iwesabe.com [1] > wrote:
> You can add font directly in qweb report without
> using css file.
> For Example.
> 
> 
> 
> 
> 
> > Blah Blah ... >
> > > > > > > > > > Thanks & Regards > > Shameem Babu P K > Odoo Technical Consultant > > > > Global Creative Concepts Tech > Co Ltd. | > Kingdom of Saudi Arabia > Mail: shameem@iwesabe.com [2] > Tel: +966 13 895 6600, Ext.222 > Mob: +966 539 079 660 > > > > None [3] website > | None [4] map | None [5] email > > > > On 10/08/2018 10:42 AM, Bhavesh Selarka > wrote: > > > I have already tried these solutions. > > But not working. > > On Mon, Oct 8, 2018 at 12:56 PM iWesabe < odoo@iwesabe.com [6] > > wrote: > > > > You can follow these steps.. > 1) Download the ttf file of your > favorite font. > > 2) Add font in the CSS file. > > /*For > Example:*/ > @font-face > { > > > font-family : TimesNewRomanNormal ; > > > src : > url('/my_awesome_app/static/src/fonts/Times_New_Roman_Normal.ttf') > format('opentype') ; > > } > > 3) Add the CSS file in your report > and enjoy qweb coding. > > > > > Thanks > & Regards > > Shameem Babu P K > Odoo Technical > Consultant > > > > Global > Creative Concepts Tech Co Ltd. | Kingdom of > Saudi Arabia > Mail: shameem@iwesabe.com [7] > Tel: +966 13 895 6600, Ext.222 > Mob: +966 539 079 660 > > > > None [8] website > | None [9] map | None [10] email > > > On 10/08/2018 10:06 AM, Bhavesh Selarka wrote: > > > > Hello, > > Anyone have an idea, how to change font family in > v11 community qweb reports. > > I have already tried with below mention link > solutions. > > > 1. > https://www.odoo.com/fr_FR/forum/aide-1/question/9-0-how-to-define-custom-fonts-to-css-in-report-assets-common-113812 > [11] > > 2.  https://github.com/odoo/odoo/issues/4908 [12] > > 3. > https://www.odoo.com/fr_FR/forum/aide-1/question/how-to-add-custom-fonts-to-qweb-reports-88923 > [13] > > Thanks, > -- > > Bhavesh > Selarka > > > > > > _______________________________________________ > Mailing-List: https://www.odoo.com/groups/technical-62 [14] > Post to: mailto:technical@mail.odoo.com [15] > Unsubscribe: https://www.odoo.com/groups?unsubscribe [16] > > > > > _______________________________________________ > Mailing-List: https://www.odoo.com/groups/technical-62 [17] > Post to: mailto: technical@mail.odoo.com [18] > Unsubscribe: https://www.odoo.com/groups?unsubscribe [19] > > > > > > -- > > Bhavesh Selarka > skype: bhavesh.selarka > twitter: @BhaveshSelarka > linkedin :  www.linkedin.com/in/bhavesh-selarka [20] > > _______________________________________________ > Mailing-List: https://www.odoo.com/groups/technical-62 [21] > Post to: mailto:technical@mail.odoo.com [22] > Unsubscribe: https://www.odoo.com/groups?unsubscribe [23] > > > > > _______________________________________________ > Mailing-List: https://www.odoo.com/groups/technical-62 [24] > Post to: mailto: technical@mail.odoo.com [25] > Unsubscribe: https://www.odoo.com/groups?unsubscribe [26] > > -- > Bhavesh Selarka skype: bhavesh.selarka twitter: @BhaveshSelarka > linkedin :  www.linkedin.com/in/bhavesh-selarka [27] > _______________________________________________ Mailing-List: > https://www.odoo.com/groups/technical-62 [28] Post to: > mailto:technical@mail.odoo.com Unsubscribe: > https://www.odoo.com/groups?unsubscribe [29] > > > > [1] mailto:odoo@iwesabe.com > [2] mailto:shameem@iwesabe.com > [3] http://www.iWesabe.com/ > [4] > https://www.google.com.sa/maps/place/GLOBAL+CREATIVE+CONCEPTS+TECH+LTD/@26.284354,50.194412,15z/data=%214m2%213m1%211s0x0:0xdef3fdc88cdb9a51?sa=X&ved=0ahUKEwjGyuqD8cfOAhVEVBQKHaRMDNYQ_BIIXjAK > [5] mailto:shameem@iwesabe.com [6] mailto:odoo@iwesabe.com > [7] mailto:shameem@iwesabe.com > [8] http://www.iWesabe.com/ > [9] > https://www.google.com.sa/maps/place/GLOBAL+CREATIVE+CONCEPTS+TECH+LTD/@26.284354,50.194412,15z/data=%214m2%213m1%211s0x0:0xdef3fdc88cdb9a51?sa=X&ved=0ahUKEwjGyuqD8cfOAhVEVBQKHaRMDNYQ_BIIXjAK > [10] mailto:shameem@iwesabe.com [11] > https://www.odoo.com/fr_FR/forum/aide-1/question/9-0-how-to-define-custom-fonts-to-css-in-report-assets-common-113812 > [12] https://github.com/odoo/odoo/issues/4908 [13] > https://www.odoo.com/fr_FR/forum/aide-1/question/how-to-add-custom-fonts-to-qweb-reports-88923 > [14] https://www.odoo.com/groups/technical-62 [15] > mailto:technical@mail.odoo.com [16] > https://www.odoo.com/groups?unsubscribe [17] > https://www.odoo.com/groups/technical-62 [18] > mailto:technical@mail.odoo.com [19] > https://www.odoo.com/groups?unsubscribe [20] > http://www.linkedin.com/in/bhavesh-selarka [21] > https://www.odoo.com/groups/technical-62 [22] > mailto:technical@mail.odoo.com [23] > https://www.odoo.com/groups?unsubscribe [24] > https://www.odoo.com/groups/technical-62 [25] > mailto:technical@mail.odoo.com [26] > https://www.odoo.com/groups?unsubscribe [27] > http://www.linkedin.com/in/bhavesh-selarka [28] > https://www.odoo.com/groups/technical-62 [29] > https://www.odoo.com/groups?unsubscribe

_______________________________________________
Mailing-List: https://www.odoo.com/groups/technical-62
Post to: mailto:technical@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

_______________________________________________
Mailing-List: https://www.odoo.com/groups/technical-62
Post to: mailto:technical@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe



--
Bhavesh Selarka
skype: bhavesh.selarka
twitter: @BhaveshSelarka

Referencia