解决在ubuntu server16.04安装odoo 10后,PDF文件生成和打印的问题
-
在ubuntu server16.04安装odoo 10后,生成或打印pdf文件时会报错。官方安装指南是这样建议的:Danger:to print PDF reports, you must install wkhtmltopdf yourself: the version of wkhtmltopdf available in debian repositories does not support headers and footers so it can not be installed automatically. The recommended version is 0.12.1 and is available on the wkhtmltopdf download page, in the archive section. As there is no official release for Debian Jessie, you can find ours on the extra section of our nightly server.
以下是解决办法:
1、先下载以下两个包:
$wget http://ftp.br.debian.org/debian/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_1.5.1-2_amd64.deb
$wget https://nightly.odoo.com/extra/wkhtmltox-0.12.1.2_linux-jessie-amd64.deb
2、安装,顺序执行以下命令:
$ sudo dpkg -i libjpeg62-turbo_1.5.1-2_amd64.deb
$ sudo dpkg -i wkhtmltox-0.12.1.2_linux-jessie-amd64.deb
(这步会报错,不用管)
$ sudo apt -f install
3、重启操作系统,OK,这次PDF文件的生成就没有问题了!