Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4 Odpowiedzi
19260 Widoki

openerp 6.0 python 2.7

I have the error : RenderPMError: Can't setFont(Times-Roman) missing the T1 files?

My problem is that I added "Times-Roman" the list of fonts reportlab but openerp does not take these changes

please help me

Awatar
Odrzuć
Najlepsza odpowiedź

All I need to do to fix this issue was run this command: 

            pip3 install reportlab --upgrade in the system. 

That works fine!

Awatar
Odrzuć

This worked for odoo 13, thanks !

Solved problem for me in Odoo14, thanks.

Najlepsza odpowiedź

Download and uncompress in /path/to/your/python/site-packages/reportlab/fonts these file

http://www.reportlab.com/ftp/fonts/pfbfer.zip

Restart server and try

Awatar
Odrzuć

This still holds true for the same error on Odoo 10 server. Thanks very much!

Najlepsza odpowiedź

On Debian 12 Bookwork we needed to run the following commands:

pip install reportlab --upgrade --break-system-packages
apt install python3-cairo
pip install rlPyCairo --upgrade --break-system-packages
pip install cairocffi --upgrade --break-system-packages

This is not the recommended approach, since you should use a python venv.

Awatar
Odrzuć
Najlepsza odpowiedź

I used both solutions from @Trey and @Manjima, one of them works in Odoo 13 and solved the problem. The solution was only applied after rebooting the entire server system.

Hope it helps!

Awatar
Odrzuć