Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

wkhtmltopdf successfully installed, can not find in odoo 8 wsgi

By
Arjan Duijs
on 5/19/15, 11:16 AM 618 views

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? 

2

Temur

--Temur--
2896
| 6 5 7
Tbilisi, Georgia
--Temur--
Programmer
Temur
On 5/19/15, 12:07 PM

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.

0
Arjan Duijs
On 5/19/15, 5:28 PM

sure did, works like a charm!

cheers!

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 5/19/15, 11:16 AM
Seen: 618 times
Last updated: 5/19/15, 5:28 PM