Odoo Help


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.


{Solved} Printing error: TypeError: this.contentDocument is null

Ev'Art Creativ
on 11/17/15, 5:00 AM 1,219 views

Hello :) i'm a happy user of the wonderfull Odoo V9 community edition :)

I'm using it on a Debian Jessie serveur with Nginx where Odoo was instaled thru the nighly builds Odoo package.

Everything is working fine except when i want to print.

When i would print a quote, an invoice, on someone else i always have this error:


TypeError: this.contentDocument is null


Retraçage :





in another way when i would send a document by mail i have this error:


Wkhtmltopdf a échoué (code d'erreur : -6). Message : The switch --header-spacing, is not support using unpatched qt, and will be ignored.The switch --header-html, is not support using unpatched qt, and will be ignored.The switch --footer-html, is not support using unpatched qt, and will be ignored.QXcbConnection: Could not connect to display


is someone have an idea to where i should look to solve there issues ?

thank you very much by advance for your help :)

Ev'Art Creativ
On 11/17/15, 7:14 AM

Ok i have solved to issue.

i had installed the jessie package. Which is not the best way.

then I've removed it in root: (that's why there are no "sudo" prefix)

apt-get remove --purge wkhtmltopdf

downloded and installed the last release (at this day) on the official website, installed it, and restart odoo:

cd ~

wget http://download.gna.org/wkhtmltopdf/0.12/

dpkg -i wkhtmltox-

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

service odoo restart

all is fine now :)

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)


Asked: 11/17/15, 5:00 AM
Seen: 1219 times
Last updated: 11/17/15, 7:17 AM