Hey,
Thanks to Yannick's comments, I managed to get stuff installed.
Here's how I did it. It's certainly not the best way, but at least my way :)
⢠Install bzr
apt-get install bzr
⢠Create an addons folder, I did it on /opt/openerp-custom
cd /opt/openerp-custom
mkdir sources
cd sources
bzr branch lp:account-invoice-report/7.0 account-invoice-report
bzr branch lp:sale-reports/7.0 sale-report
bzr branch lp:account-financial-report/7.0 account-financial-report
bzr branch lp:webkit-utils webkit-utils
cd ..
mkdir addons
cd addons
ln -s ../sources/sale-report/sale_order_webkit/ sale_order_webkit
ln -s ../sources/account-invoice-report/invoice_webkit/ invoice_webkit
ln -s ../sources/webkit-utils/base_headers_webkit/ base_headers_webkit
ln -s ../sources/webkit-utils/report_webkit_chapter_server/ report_webkit_chapter_server
(do the same for financial reports if you need them)
⢠Install wkhtml2pdf
Go to http://code.google.com/p/wkhtmltopdf/ and download the latest wkhtmltopdf (people were saying that the static version was best, forgot to note source, sorry)
cd
wget http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.11.0_rc1-static-i386.tar.bz2
bunzip2 wkhtmltopdf-0.11.0_rc1-static-i386.tar.bz2
tar -xvf wkhtmltopdf-0.11.0_rc1-static-i386.tar
mv wkhtmltopdf-i386 /usr/bin/wkhtmltopdf
⢠Update OpenERP configuration.
vi /etc/openerp/openerp-server.conf
add:
addons_path = /usr/lib/pymodules/python2.7/openerp/addons,/opt/openerp-custom/addons
(make sure your default addons_path is /usr/lib/pymodules/python2.7/openerp/addons. You can check that in the server log, the path is given on startup)
Restart OpenERP
service openerp restart
⢠Go to web interface
Make sure your admin users has technical capabilities (else edit your user in Conf / Users, access rights tab and check "Technical features")
⢠Update modules list
Under Configuration / Modules, click "Update Modules list"
⢠Go to "Installed modules"
In the search bar, remove the "Installed" tag and search for "webkit" instead.
You should see the modules that are in /opt/openerp-custom/addons
Install them
⢠Test
Go to Configuration Header/Footers for Webkit and edit "Base Reports Portrait Header"
Specify your company there.
Try to print a quote, cross fingers :)
⢠Customization
Edit headers and footers in Configuration / Header-Footers for Webkit
I edited the "Base Reports Portrait Header"
Edit templates in Configuration / Action / Reports. I edited sale.order
If you use custom fonts, add them to the system (I added them to /usr/share/fonts/truetype and ran fc-cache -fv )
Hope this will save someone some hours trying to find out how to install that :)
Best,
Thomas