问题:
安装了wkhtmltopdf后,在odoo中打印出的报表显示为已损坏。
odoo发出了一个警告提示版本不对,需要安装qt补丁。
2020-03-10 01:53:27,152 9236 warning warehouse_management odoo.addons.base.models.ir_actions_report: wkhtmltopdf: b'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.wkhtmltopdf: cannot connect to x server \n'
方案:
1、查看安装的版本,发现版本为0.12.4
2、卸载当前旧版
yum remove wkhtmltopdf
3、官网下载最新:,根据个人系统下载版本。
根据官方提示0.12.5版本带有qt修补丁。
4、使用yum安装
5、重启odoo发现已经可以用,但是打印出来没有中。
6、需要安装中文字体
参考:
参考:
参考:
由于参考了几篇博客操作,最终才可以。
如对本文有疑问, 点击进行留言回复!!
linux下文本编辑器vim的使用方法(复制、粘贴、替换、行号、撤销、多文件操作)
网友评论