打印中文显示不正常的解决办法
将windows fonts目录下的雅黑复制到 /usr/share/fonts/truetype
,也可用其他文件夹名,
#odoo默认搜索字体的文件夹
'/usr/share/fonts/truetype', # SuSE
'/usr/share/fonts/dejavu', '/usr/share/fonts/liberation', # Fedora, RHEL
'/usr/share/fonts/truetype/*','/usr/local/share/fonts' # Ubuntu,
'/usr/share/fonts/TTF/*', # Mandriva/Mageia
'/usr/share/fonts/TTF', # Arch Linux
'/usr/lib/openoffice/share/fonts/truetype/',
'~/.fonts',
'~/.local/share/fonts',
# mac os X - from
# http://developer.apple.com/technotes/tn/tn2024.html
'~/Library/Fonts',
'/Library/Fonts',
'/Network/Library/Fonts',
'/System/Library/Fonts',
# windows
'c:/winnt/fonts',
'c:/windows/fonts'
ubuntu下安装
sudo apt-get install ttf-wqy-zenhei ttf-wqy-microhei
完成后在开发模式下,常规设置-重载字体
打印时css样式缺失
开发者模式下,技术-系统参数-添加report.url
- http://127.0.0.1:8069
参见https://github.com/odoo/odoo/issues/2934