Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

wkhtmltopdf (0.12.2.1) PDF Reports are not correctly formatted on Ubuntu:

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
13 Răspunsuri
30397 Vizualizări
Imagine profil
Nigel Butler

Having installed Odoo 8.0 on Ubuntu server 14.04.2 and installing the latest wkhtmltopdf (0.12.2.1) when I generate any PDF the font is too large and the format for the report is not correct.

The preview in Edit Company Data > Report Configuration > Preview Header / Footer, looks great. See this JPEG [https://www.dropbox.com/s/p25lolvjv35vwi8/Header-Preview.JPG?dl=0]

Any PDF report that is generated the company name, and all address details are all going onto multiple lines, which then covers the customers address. For example the Picking List, see this JPEG [https://www.dropbox.com/s/jw59rz4f1yca8jo/Picking-List.JPG?dl=0]


When I open the same Database on a Windows installation of Odoo Version 8.0-20150629 the reports all look great, but in Ubuntu they cannot be used. 

I have tried changing the font in Edit Company Data > Report Configuration >  and also reducing the font size in the header data Edit Company Data > Report Configuration > RML Header, but this does not help.

When I change the report output to HTML Settings > Reports > Report Type, the HTML File is correctly formatted, just not the PDF.

Does any one know what the issue is and how it can be resolved on the Ubuntu Server?

1
Imagine profil
Abandonează
Guillaume Seran

After installing wkhtmltopdf I wrote the path in odoo config file : webkit_path = /usr/local/bin/wkhtmltopdf I don't know if can help you !

Nigel Butler
Autor

Guillaume, I have just tried adding"webkit_path = /usr/local/bin/wkhtmltopd" to /etc/odoo-server.conf and then restarting the server but it does not seem to have solved the issue.

Imagine profil
moamed
Cel mai bun răspuns

Yes that's right, we've resolved the issue by add
 System Parameters : add key = report.url, value= http://127.0.0.1:8069/ 
wkhtmltox-0.12.1_linux-trusty-amd64.deb

2
Imagine profil
Abandonează
Meziani Hacene

it works for me, thank you

Imagine profil
David Bertha
Cel mai bun răspuns

If you check the odoo log file, do you see some GET lines between

POST /report/check_wkhtmltopd and POST /report/download ?

Example :

2015-07-07 11:45:52,236 3528 INFO new_dev werkzeug: 192.168.56.1 - - [07/Jul/2015 11:45:52] "POST /report/check_wkhtmltopdf HTTP/1.1" 200 -
2015-07-07 11:45:53,157 3528 INFO ? werkzeug: 127.0.0.1 - - [07/Jul/2015 11:45:53] "GET /web/static/lib/fontawesome/css/font-awesome.css HTTP/1.1" 200 -
2015-07-07 11:45:53,162 3528 INFO ? werkzeug: 127.0.0.1 - - [07/Jul/2015 11:45:53] "GET /website/static/src/css/website.css HTTP/1.1" 200 -
2015-07-07 11:45:53,173 3528 INFO ? werkzeug: 127.0.0.1 - - [07/Jul/2015 11:45:53] "GET /web/static/lib/bootstrap/css/bootstrap.css HTTP/1.1" 200 -
2015-07-07 11:45:53,179 3528 INFO ? werkzeug: 127.0.0.1 - - [07/Jul/2015 11:45:53] "GET /report/static/src/css/reset.min.css HTTP/1.1" 200 -
2015-07-07 11:45:53,504 3528 INFO ? werkzeug: 127.0.0.1 - - [07/Jul/2015 11:45:53] "GET /report/static/src/js/subst.js HTTP/1.1" 200 -
2015-07-07 11:45:53,603 3528 INFO new_dev werkzeug: 192.168.56.1 - - [07/Jul/2015 11:45:53] "POST /report/download HTTP/1.1" 200 -

If not, you can try this :

Settings ==> Parameters ==> System Parameters : add key = report.url, value= http://127.0.0.1:8069/

From : https://github.com/odoo/odoo/issues/2934

2
Imagine profil
Abandonează
Imagine profil
Ray Carnes
Cel mai bun răspuns

0.12.2.1 is the wrong version.

 

 From

https://www.odoo.com/documentation/8.0/setup/install.html#deb 

1
Imagine profil
Abandonează
E.M.

I have the same issue than Nigel, downgrading to 0.12.1 did not fix anything, still Invoices appear with the default font.

Imagine profil
Bohdan Lisnenko
Cel mai bun răspuns

I have similar issue. This is not problem with wkhtml but with report template. Try Odoo 9 there are improvements on reports template

0
Imagine profil
Abandonează
Imagine profil
Mitul
Cel mai bun răspuns

Has anyone found the solution.

My company name overlaps customer name and address

0
Imagine profil
Abandonează
Imagine profil
Jatupong
Cel mai bun răspuns

Hi, if anyone still can't make it work. please try again to remove 12.2.1 (ensure it was removed completely) then try to install 12.1.2 from http://nightly.odoo.com/extra/. i'm using amd64.


in case you get dependency error about libjpeg62-turbo, download from this link and then install "http://ftp.tw.debian.org/debian/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.4.1-2_amd64.deb


after all dependency install then try install wkhtmltox-0.12.1.2_linux-jessie-amd64.deb  again, i'm quite sure at least it should book.


good luck.

0
Imagine profil
Abandonează
Imagine profil
Tom Schiets
Cel mai bun răspuns

Settings ==> Parameters ==> System Parameters : add key = report.url, value= http://127.0.0.1:8069/ 
worked perfect for me!

0
Imagine profil
Abandonează
Imagine profil
Ankit H Gandhi(AHG)
Cel mai bun răspuns

Hello 

Please follow below step:

Download wkhtmltopdf patched with qt using below command

 - sudo wget -P Downloads https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb

Here, replace "trusty" with your OS name and if 64 bit only then keep "amd64" like that , otherwise change it to "i386" and down load the deb file.

After that execute the following commands,

- cd ~/Downloads

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

Now, check wkhtmltopdf version with below command,

- wkhtmltopdf -V

Hope above step help full.

Best Thanks,

Ankit H Gandhi.

0
Imagine profil
Abandonează
Imagine profil
Nigel Butler
Autor Cel mai bun răspuns

 I am not sure how I can respond to your answers, when I try and comment on them it says I do not have enough points.

Ray Carnes - I have now downgraded to 0.12.1. If you fill in all the fields in the company address then it is still too long and covers up the "Ship To" address below it. But I think this has fixed the issue. 

David Bertha -Is this the Odoo Log File you are referring too? I added the key = report.url, value= http://127.0.0.1:8069/ to SYSTEM PARAMETERS, and it does not appear to have made any difference.  

0
Imagine profil
Abandonează
Mitul

Did you find a solution?

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Înscrie-te
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now