From dcc56bba1dc459a6790a1570dd38cb5b018e48c9 Mon Sep 17 00:00:00 2001 From: scith Date: Wed, 16 Sep 2015 15:48:36 +0200 Subject: [PATCH] Fix wkhtmltopdf report --- README.md | 12 ++++++++++-- scripts/install | 6 +++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index aa055fa..a0bc048 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/scripts/install b/scripts/install index 54e5599..a80cbc5 100644 --- a/scripts/install +++ b/scripts/install @@ -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