Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
11 Răspunsuri
69853 Vizualizări

Hello,

Can anyone help me to add "wkhtmltopdf" as a System Parameter in OpenERP? 
 

Thank You.

Imagine profil
Abandonează
Autor

@Luke thank you for the help, it helped me... :)

Cel mai bun răspuns

If you're running a clean install of Ubuntu 14.04 run the following line by line:

sudo wget http://jaist.dl.sourceforge.net/project/wkhtmltopdf/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb
sudo cp /usr/local/bin/wkhtmltopdf /usr/bin
sudo cp /usr/local/bin/wkhtmltoimage /usr/bin

Imagine profil
Abandonează
Cel mai bun răspuns

Please follow below steps

 

1) Download wkhtmltopdf version from wkhtmltopdf.org depend on your system arch (32 or 64 bit)

   

    wget wget http://downloads.sourceforge.net/project/wkhtmltopdf/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb

 

2) Install the package using commnad :

 

   sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb 

 

3) Copy binary or wkhtmltopdf to /usr/bin location from ./usr/local/bin use command

     

    sudo cp /usr/local/bin/wkhtmltopdf /usr/bin/

 

4) Restart Odoo server and try once again.

Imagine profil
Abandonează

For part 1), downloads are now available at : http://download.gna.org/, so in the example use : wget http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb

Cel mai bun răspuns

To install,

:~ apt-get install wkhtmltopdf

In Odoo,
Goto -> Settings -> Parameters -> System Parameters -> Create -> Key - webkit, Value - /var/app/wkhtmltopdf (Eg Value - Path to Executable file of wkhtmltopdf)

 

Imagine profil
Abandonează
Autor Cel mai bun răspuns

Hello all,

When you install the "wkhtmltopdf" try to install stable version by getting the source via wget, because the apt-get does not download stable versions.

Thank You.

Imagine profil
Abandonează

It depends on what are the repos u added in ur software sources...

Cel mai bun răspuns

For Odoo14 and MacOs 10+ Users:

$ brew install wkhtmltopdf 

copy path from $ which wkhtmltodpf

And follow steps provided by Abdullah (modified for current times):

  • Once it's installed, go to Odoo and go to Settings > Users and click on your user
  • Click edit and scroll down and look for Activate Developer Mode.
  • Apply, then log out and re*login
  • Go to Settings again and now you should see several new technical menu items on top menu bar
  • Go to Settings -> Customization -> Parameters -> System Parameters
  • Click Add and for Key insert : webkit_path
  • For value insert: path from $ which wkhtmltodpf
  • Apply and test with a sales quote or something
Imagine profil
Abandonează
Cel mai bun răspuns

@abdullah sofan

The instruction you posted is for the enterprise version right?  Does it work on the community version?  

I have odoo v9 installed and I don't have the "technical features" option you indicated. 




Imagine profil
Abandonează
Cel mai bun răspuns

Hi, I did exactly these steps, as Abdullah Sofan explained, but it does not work in my system. Could anybody help me, please?

1.       Downloaded version 0.12.2 for Windows (MSVC 2013) from http://wkhtmltopdf.org/downloads.html#stable

2.       Set Windows Environment Param, from cmd: setx path "%path%;C:\Odoo\wkhtmltopdf32\bin\"

3.       Restart the system and verify that the tool runs correctly, from cmd: wkhtmltopdf –version

4.       Created system param in Odoo with the name webkit_path and value “C:\Odoo\wkhtmltopdf32\bin\wkhtmltopdf.exe”. (Settings -> Parameters -> System Parameters -> Create -> Key).

5.       Added parameter bin_path = C:\Odoo\wkhtmltopdf32\bin\wkhtmltopdf.exe to the file openerp-server.conf

6.       Restart Odoo.

Imagine profil
Abandonează
Cel mai bun răspuns

since end of November 2014, a new config parameter is available. the parameter bin_path is used for external binaries served in the thirdparty dir. If you have installed wkhtmltopdf 0.12.x you can set the parameter bin_path in openerp-server.conf to the installation path of wkhtmltopdf. This is the recommended solution from odoo.

For more details see f76d452

Imagine profil
Abandonează
Cel mai bun răspuns

Were you able to find a Windows solutions?

Imagine profil
Abandonează
Cel mai bun răspuns

for windows, download and install wkhtmltopdf for your version of windows (32 bit or 64 bit)

  • Once it's installed, go to Openerp/odoo and go to Settings> Users and click on your user
  • Click edit and scroll down and look for "Technical Features" is enabled / checked.
  • Apply, then log out and relogin
  • Go to Settings again and now you should see several new technical menu items on the left
  • Go to Settings -> Customization -> Parameters -> System Parameters
  • Click Add and for Key insert : webkit_path
  • For value insert: C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe
  • Apply and exit and restart Windows.

If it doesn't work, modify the value to be C:\Progra~1\wkhtmltopdf\bin\wkhtmltopdf.exe

That should do it. I hope this helps.

Imagine profil
Abandonează
Cel mai bun răspuns

How is the solution for windows platform?

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
mar. 25
643
1
iun. 25
5092
4
sept. 24
4353
1
dec. 23
1432
13
dec. 17
38472