Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
4857 Представления

I have installed wkhtmltopdf/image on my Webfaction virtual environment.

It sits nicely in /usr/local/bin

[josesapelli@web452 bin]$ wkhtmltopdf --version

wkhtmltopdf 0.12.1 (with patched qt)

However after a server restart Odoo still can not find it.

In some tutorials i read that moving it to /usr/bin/wkhtmltopdf should fix that, however on webfaction you dont have permission for that.

In another post on the forum here they mention you can set the variable in the admin settings, -> configuration -> parameters..

but in my admin there is no parameters in configuration..


So my question is, how  can i point odoo 8 (using wsgi)  to the right location of wkhtmltopdf? 

Аватар
Отменить
Лучший ответ

in your wsgi startup script (normally this one ) add at the beginning:

import os
os.environ['PATH'] += os.pathsep + '/usr/local/bin'

hope this helps.

Аватар
Отменить
Автор Лучший ответ

sure did, works like a charm!

cheers!

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
сент. 19
11843
0
мар. 15
13528
0
мар. 25
1860
1
мар. 25
1979
0
мар. 25
1264