Fix wkhtmltopdf report

This commit is contained in:
scith 2015-09-16 15:48:36 +02:00
parent f4ac664394
commit dcc56bba1d
2 changed files with 15 additions and 3 deletions

View file

@ -28,9 +28,17 @@ Configuration
- Template user: template
- Save
**Backup and Restore via Odoo**
**Backup via Odoo**
- In YunoHost, open the port 8069
- Access Odoo via your server's IP or URL via *:8069* at the end. You can now backup and restore via the web interface
- Access Odoo via your server's IP or URL via *:8069* at the end
- Go to manage databases and backup
**Restore via Odoo**
- In YunoHost, open the port 8069 (if you haven't opened it already)
- Access Odoo via your server's IP or URL via *:8069* at the end
- Go to manage databases and delete the old database
- Restore
- **Important!** The database must be named "*subdomain-domain-tld*" (for example *erp-test-com* if you access the database via *erp.test.com*
Odoo

View file

@ -51,7 +51,11 @@ else
sudo apt-get -y -qq install odoo
# Install wkhtmltopdf to print PDF reports
sudo apt-get -y -qq install wkhtmltopdf
sudo wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-jessie-amd64.deb
sudo dpkg -i wkhtmltox-0.12.2.1_linux-jessie-amd64.deb
sudo apt-get -y -qq install xfonts-75dpi
sudo cp /usr/local/bin/wkhtmltopdf /usr/bin
sudo cp /usr/local/bin/wkhtmltoimage /usr/bin
# Set admin password
sudo sed -i "s@ADMIN_PASSWORD@$admin_password@g" ../conf/openerp-server.conf