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

[Odoo 8] Configuration de wkhtmltopdf

By
Sam
on 3/31/16, 6:23 AM 570 views

Je viens d'installer avec succès l'application Odoo sur une instance Simple Hosting de Gandi :

http://c4abbb99e7.url-de-test.ws/

Je voudrais configurer 'wkhtmltopdf'.

Avant, je pouvais le faire en allant dans le menu suivant :

Settings -> Technical -> Parameters -> System Parameters

Puis en enregistant la clé de configuration : webkit_path

Avec la valeur suivante :

/srv/data/web/vhosts/default/bin/wkhtmltopdf

Cf. : http://www.ackwa.fr/blog/2014/05/17/installation-de-wkhtmltopdf-pour-odoo-sous-debian/

Mais, avec la version d'Odoo 8 (build du 160331), je n'ai pas ce menu là.

Auriez-vous une piste à me suggèrer ?

 

This is an english forum, please use english language.

Ermin Trevisan
on 3/31/16, 7:40 AM
1
Edwin Hndez
On 4/1/16, 11:57 PM

  • Ingresamos a una terminal y descargamos la ultima versión de wkhtmltopdf de \aquí.
    1
    wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-trusty-amd64.deb
  • Descargamos una dependencia:
    1
    sudo apt-get install xfonts-75dpi
  • Procedemos a instalar wkhtmltox:
    1
    sudo dpkg -i  wkhtmltox-0.12.2.1_linux-trusty-amd64.deb
  • Copiamos wkhtmltopdf y wkhtmltoimage a /usr/bin
    1
    2
    sudo cp /usr/local/bin/wkhtmltopdf /usr/bin
    sudo cp /usr/local/bin/wkhtmltoimage /usr/bin
  • Reiniciamos Odoo v8  y ya deberíamos poder ver nuestros reportes en PDF.
    1
    sudo /etc/init.d/odoo-server restart
1
Odoo Honduras
On 4/1/16, 11:54 PM

Try  this


http://odooperu.org/?p=706

0
Forget Mathieu
On 4/4/16, 11:59 AM

I use Odoo 8 on Debian (Wheezy) and i installed wkhtmltopdf using:

1) sudo wget http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb

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

3) sudo cp /usr/local/bin/wkhtmltopdf /usr/bin

When i try to print something there is no error message from Odoo but the pdf is empty (0 ko) ...

Could someone help me ?

0
Nilesh Sheliya
On 3/31/16, 9:01 AM

To setup wkhtmltopdf for Odoo 8, Please execute the below command in terminal.

1) sudo wget http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb

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

3) sudo cp /usr/local/bin/wkhtmltopdf /usr/bin/

If your OS is 32 bit, then replace amd64 with i386.

Once done above steps, restart Odoo and try to print report. No need to setup System Parameters.


0
Sam
On 3/31/16, 7:52 AM

I have installed Odoo on a instance Simple Hosting Gandi :

http://c4abbb99e7.url-de-test.ws/

I want to configure 'wkhtmltopdf'.

Before, I could configure it with this menu:

Settings -> Technical -> Parameters -> System Parameters

Configuration key : webkit_path

With the following value: /srv/data/web/vhosts/default/bin/wkhtmltopdf

With the latest version of Odoo 8 (build du 160331), I don't have this menu.

Could you help me?

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: 3/31/16, 6:23 AM
Seen: 570 times
Last updated: 4/4/16, 11:59 AM