Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I have downloaded v0.12 from wkhtmltopdf site, extrated the file to usr/bin.
I have created a record
Settings > Configuration > Parameters > System Parameters name âwebkit_pathâ set the value to /usr/bin/wkhtmltopdf/ tried /usr/bin/wkhtmltopdf/bin/
still I am getting an error saying it is not found when I try to print a report.
Any ideas ?
The steps that I found to work for me on debian wheezy are:
dpkg -i wkhtmltox-0.12.1-9615f00_linux-wheezy-amd64.deb
Then in /etc/init.d/openerp-server add /usr/local/bin to the front of path environment variable, e.g.
Then restart openerp and all is well.
Yes that did the trick for me:
Using Ubuntu 14.04:
- First install the one from the ubuntu library. The executable goes to /usr/bin.
- Then install the package from sourceforge with dpkg -i .deb filename. This will create (also) files in /usr/local/bin
- then just simply copy the file over the one in /usr/bin
I had to reboot to get it working. Probably a restart of the openerp-server also does the trick.
I have manage to get it to work by doing the installation of wkhtmltopdf in ubuntu via apt-get install.
I was getting wrong version message so, I then copy the wkhtmltopdf file from the archive from wkhtmltopdf website and replaced the file that ubuntu installed in /usr/bin/.
It does work properly now. Dunno if I will get issues later on since I have not replaced the libs that comes in the archive.
Will keep updating this if any issue arise !
I made it work on Windows.
You have to follow this thread: https://www.odoo.com/fr_FR/forum/help-1/question/how-tu-print-a-pdf-with-qweb-wkhtmltopdf-v8-on-windows-tutorial-64326
The most important, do not confuse Environnement variables and System variables
We need do add the wkhtmltopdf path into Path System Variable and NOT in Environnement variables.
Do not forget to restart odoo server after this !
I think I should make it clear that the OP problem is that he is inserting the directory path of wkhtmltopdf to the webkit_path option. The correct value is the path to wkhtmltopdf executable. Below is the example of the setting, depends on your installation path.
linux: webkit_path = /usr/local/bin/wkhtmltopdf
windows: webkit_path = c:\program files\wkhtmltopdf\wkhtmltopdf.exe
Other option is not to use webkit_path. It can be done if you put wkhtmltopdf executable in environment PATH or the same directory as openerp-server script. I think the webkit_path option is more secure and easier to maintain, because it determine specifically what odoo can execute.
Using Turnkey Linux Postresql - Debian Wheezy- got Sales Orders and Invoices to Work with the following using SSH - no navigation from login, just run after login----This was after being unable to generate a PDF of SO or Invoice without errors previously------
apt-get install xfonts-base
dpkg -i wkhtmltox-0.12.2.1_linux-wheezy-amd64.deb
apt-get -f install
(Then Started Openerp Server) Odoo
About This Community
This platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 4/1/14, 5:47 PM|
|Seen: 32530 times|
|Last updated: 2/23/17, 7:46 PM|