Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

Adding Custom RML Font In Odoo8

By
Alex Gallien
on 9/28/15, 2:56 PM 428 views

Hi all,

I recently migrated from OpenERP7 to Odoo8 using OpenMigrate (went well so far) but am having trouble installing the font that I like to use for my customized quotation form. I would rather not port the whole thing over to HTML/CSS right now, since the form took me a while to draw up in RML. I installed the font, and know that it is installed system-wide because I can select it under Companies -> Report Configuration -> Font, and it correctly renders when I preview the Header/Footer. However when I try to run my RML report I get this error:

2015-09-28 18:26:32,880 1507 WARNING IOI_CRM openerp.report.render.rml2pdf.trml2pdf: Could not locate font OCRA, substituting default: None

Anyone dealt with this before? The font file is installed (Ubuntu) at

/usr/share/fonts/truetype/OCRA/ocraextended.ttf

and also at

/usr/share/fonts/truetype/ocraextended.ttf 

I have the font added to customfonts.py as such:

CustomTTFonts = [('OCRA', 'OCRA', 'ocraextended.ttf', 'all')]

Did anything change here? Is there another way of calling this font? In my RML it is initiated like this, which worked perfectly in v7:

<paraStyle name="OCRA" fontName="OCRA" fontSize="9" leading="10" alignment="LEFT"/>

Any advice would be greatly appreciated.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 9/28/15, 2:56 PM
Seen: 428 times
Last updated: 1/26/16, 7:07 AM