问题
All the default reports and the new reports that I am generating are being printed towards the left of the page. This only happens when the report is generated in PDF format. In HTML format the report is displayed fine. I did some research and found that downgrading the wkhtmltox to version 0.21.1 would solve this problem. I did that, but the problem still persists.
回答1:
There is one small configuration Go to settings --> Technical --> Parameters --> System Parameters -->
Click on Create and type
Done
回答2:
You can try with completely un install and install again it again wkhtmlttopdf 0.12.X python library and try to print that report again..
I hope this should helpful for you ..:)
回答3:
In Ubuntu 14.04, open the terminal and type:
sudo add-apt-repository ppa:ecometrica/servers
sudo apt-get update
sudo apt-get install wkhtmltopdf
In Ubuntu 12.04, open the terminal and type:
sudo add-apt-repository ppa:pov/wkhtmltopdf
sudo apt-get update
sudo apt-get install wkhtmltopdf
If That Was Not Working Then Following This Step
1) Download wkhtmltopdf version from wkhtmltopdf.org depend on your system arch (32 or 64 bit)
wget http://downloads.sourceforge.net/project/wkhtmltopdf/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
2) Install the package using commnad :
sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb
3) Copy binary or wkhtmltopdf to /usr/bin location from ./usr/local/bin use command
sudo cp /usr/local/bin/wkhtmltopdf /usr/bin/
4) Restart Odoo server and try once again.
来源:https://stackoverflow.com/questions/30395900/report-formatting-not-working-in-odoo-8-qweb-reports