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

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

By
Ev'Art Creativ
on 11/17/15, 5:00 AM 1,329 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:

[code]

TypeError: this.contentDocument is null

https://evartcreativ.net/web/content/6713-1faa9da/web.assets_common.js:2552

Retraçage :

get_file/$target<@https://my-domain.tld/web/content/6713-1faa9da/web.assets_common.js:2552:236

jQuery.event.dispatch@https://my-domain.tld/web/content/6713-1faa9da/web.assets_common.js:740:378

jQuery.event.add/elemData.handle@https://my-domain.tld/web/content/6713-1faa9da/web.assets_common.js:713:151

[/code]

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

[code]

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

[/code]

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

thank you very much by advance for your help :)


0
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/0.12.2.1/wkhtmltox-0.12.2.1_linux-jessie-amd64.deb

dpkg -i wkhtmltox-0.12.2.1_linux-jessie-amd64.deb

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)

Stats

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