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

Print .pdf result in empty page

Abonare

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

Această întrebare a fost marcată
21 Răspunsuri
23806 Vizualizări
Imagine profil
Neil

Hi,

I'm running Odoo v8, and recently ran into some troubles with printing orders/invoices/packing slips/what more have you. Two months back I've modified the external headers/footers to display our logo's, and it has been printing correctly until yesterday. The .pdf files printed do not display any content whatsoever.

As said, I've modified the external header/footer in Settings -> User Interface -> Views -> external_layout_header and external_layout_footer. If I remove or rename the div class="header"/"footer" respectively, I can print pdf's again, however without the content of the header/footer.

Server log doesn't show any wkhtmltopdf errors, and as said, everything has been working until yesterday and since then no apperent changes have been made.

Would like some help to isolate/resolve this issue. Thanks!

 

 

0
Imagine profil
Abandonează
Zbik

What is the effect if you change Report Type = HTML in Settings/Reports/Reports?

Zbik

wkhtmltopdf version?

Neil
Autor

wkhtmltopdf --version wkhtmltopdf 0.12.1 (with patched qt) Setting report type to HTML prints the entire report. There are some formatting f*ck ups however, but everything is there...

Neil
Autor

I tried putting back a back-up of the entire server. The back-up allows me to print the invoices again correctly, but if I make modifications to the settings and log-in/log-out the whole hassle starts again...

Zbik

Try original footer and header, probably issue in your code.

Neil
Autor

Thought that would solve it as well, so replaced it with the originals I grabbed from https://github.com/odoo/odoo/blob/b74d830eb299c6d672c58f3b53410dde37608a5f/addons/report/views/layouts.xml Rebooted, logged-out and logged-in and still marvelous blank pages :-( Apart from being blank, it still shows a file size of about 4kB?

Zbik

problem with access to javascript, one js flile?

Neil
Autor

Not that I'm aware of, how can I check?

Zbik

chown -R odoo.odoo ADDONS_DIR

Zbik

You have customized js or css?

Neil
Autor

I chowned /opt/odoo/addons and rebooted with no results. I had edited the css of the website module a while back. Would it be worth trying uninstalling the website builder, and re-install it with a fresh version from github?

Zbik

I think not, this module should not be linked to invoices. Can compare versions and so look for the cause, step by step? I can not help you more :(

Zbik

PS. you test other browser

Zbik

PS1 ... and enable debugger in browser

Neil
Autor

Thanks for your help. I removed the website modules and it didn't do a thing. I also tried different browsers with the debugger enabled, all show normal calls to wkhtmltopdf with a 200 OK response. I guess I'm going to re-install the entire thing tomorrow, there's something weird going on here...

Neil
Autor

I think I managed to resolve it. Iptables was reconfigured to reroute port 80 to 8069. Therefore the interface was accessed on port 80, which seems to have caused the problem. Changed back to old-spool port 8069, and it prints again...

Imagine profil
David Ogles
Cel mai bun răspuns

I'm having the same issue with the PDF reports being blank, but only seems to be with the Odoo 10 Community.  I install Odoo 10 Enterprise, load sample data, same everything as community, and it prints a PDF with data.  

Run both from the same laptop.  Even run Ent but connect back to community database, and reports are populated.  Windows 7 enterprise laptop.

0
Imagine profil
Abandonează
Imagine profil
Neil
Autor Cel mai bun răspuns

Tried with the latest version (0.12.2.1) with:

sudo wget http://sourceforge.net/projects/wkhtmltopdf/files/0.12.2.1/wkhtmltox-0.12.2.1_linux-trusty-amd64.deb

Rebooted and loged out/in on the Odoo interface. Still I'm faced with it printing empty pages.

(@zbik, sorry, couldn't comment on your answer, the forum doesn't allow me to because I need 30pts.)

0
Imagine profil
Abandonează
Zbik

You disable/enable Custom Footer in Company Form and verify result? You verify also how many server instances is working.

Neil
Autor

Disable/enabling the custom footer yields no results. There's just one instance running on the server, and it has only one database. Is there any way to debug the wkhtmltopdf process (is there a separate log file)?

Imagine profil
Zbik
Cel mai bun răspuns

Probably problem with wkhtmltopdf. To solve wkhtmltopdf issue (report are empty) try this:

  • sudo wget http://downloads.sourceforge.net/project/wkhtmltopdf/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb  (or 32 version)
  • 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
  • restart server.

Hope this help.

 

0
Imagine profil
Abandonează
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