Odoo Help


Adding Custom RML Font In Odoo8

Alex Gallien
on 9/28/15, 2:56 PM 791 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


and also at


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.

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


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