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

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 ?

 

Imagine profil
Abandonează

This is an english forum, please use english language.

Cel mai bun răspuns

  • 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
Imagine profil
Abandonează
Cel mai bun răspuns

Try  this


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

Imagine profil
Abandonează
Cel mai bun răspuns

Bonjour,

Je suis dans le même cas que toi, c'est à dire une installation de odoo 8 sur simple hosting de Gandi. As tu trouvé une solution?

Merci d'avance,

Jonathan

Imagine profil
Abandonează
Cel mai bun răspuns

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 ?

Imagine profil
Abandonează
Cel mai bun răspuns

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.


Imagine profil
Abandonează
Autor Cel mai bun răspuns

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?

Imagine profil
Abandonează