Hello,

I checked your module (after having unzipped it), which is a very good idea. 
Unfortunately, it crashed for me:
> PDFError: getInternalFontName('Helvetica') called for a dynamic font

Having a quick look at the code, here are a few comments
 replace: pdfmetrics.registerFont(TTFont('Times-Roman', 'DejaVuSerif.ttf'))
 by: 
pdfmetrics.registerFont(TTFont('Times-Roman',tools.file_open('DejaVuSerif.ttf', 
subdir=os.path.join('addons','10n_utf8','fonts'))))

You can then remove these 2 lines:
 # myfonts = os.path.abspath(os.path.dirname(__file__)) + "/fonts";
 # reportlab.rl_config.TTFSearchPath.append(myfonts);

Having done this, your module should work also as a .ZIP

One note: your module is not database independant ! If your install your module 
in one database, it will apply the modif for all databases in this server. But 
it's ok for most installations.





_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to