Odoo Help


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.


Problem with barcodes

Jeff Beidler
on 2/18/15, 11:41 AM 1,094 views

I noticed that barcodes weren't showing up on my stock.picking report, so I looked at the server's output and saw this:

RenderPMError: Can't setFont(Times-Roman) missing the T1 files?
Originally <type 'exceptions.TypeError'>: makeT1Font() argument 2 must be string, not None

Do you have to get special fonts in order to use barcodes?  I'm using CentOS 7, if that makes any difference.

I tried the steps in this post (https://www.odoo.com/forum/help-1/question/renderpmerror-cant-setfont-times-roman-missing-the-t1-files-29688) but found that I don't have a reportlabs folder in python2.7/site-packages. Is there an additional module needed?

Jeff Beidler
on 2/18/15, 4:25 PM

I created the folder reportlabs/fonts under the python2.7/site-packages directory, and unzipped the font files there. I still get the same error. Any other ideas?

Jeff Beidler
on 2/19/15, 1:33 PM
Jeff Beidler
On 2/19/15, 4:52 PM

Got it sorted.  Simply installing the reportlab fonts in a directory beneath site-packages was not enough.  I found that reportlab was already installed, but decided to try following the instruction "pip install reportlab".  Found out that pip was not installed!  So, I ran "sudo yum install python-pip" (I'm on CentOS 7).  I then ran "sudo pip install reportlab --upgrade" and restarted the Odoo server.  Voila!  Working barcodes!

Hope this helps someone else.

In our case we were prompted to additionally run

pip install --upgrade pip

before running:

pip install reportlab --upgrade

Your solution works. Thank you.

Open Alpha LLC
on 7/12/16, 8:18 AM

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

1 follower(s)


Asked: 2/18/15, 11:41 AM
Seen: 1094 times
Last updated: 3/16/15, 8:10 AM