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.
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.
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
|Asked: 2/18/15, 11:41 AM|
|Seen: 1094 times|
|Last updated: 3/16/15, 8:10 AM|