コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
4867 ビュー

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!

アバター
破棄
関連投稿 返信 ビュー 活動
1
9月 19
11862
0
3月 15
13538
0
3月 25
1878
1
3月 25
2006
0
3月 25
1278