Install Odoo 12 Community
We can install Odoo 12 community on Ubuntu 18.04 server or Debian 9 server in the same ways. Odoo 12 use Python 3 and has better performance than before. There are several steps we need to do, so that Odoo can run properly.
- Install PostgreSQL with command sudo apt install postgresql -y
- Download latest Odoo 12 package from repository with command wget https://nightly.odoo.com/12.0/nightly/deb/odoo_12.0.latest_all.deb
- Install Odoo 12 package with command sudo dpkg -i odoo_12.0.latest_all.deb
- The above command will produce errors because we need to install dependency of the package. To resolve this, we can use sudo apt install -f
Now you can type localhost:8069 or ip_address:8069 on your browser to make sure that Odoo 12 installed well.
Install Wkhtmltopdf for Odoo 12
Odoo 12 needs Wkhtmltopdf for print report document. Based on https://github.com/odoo/odoo/wiki/Wkhtmltopdf, we can choose Wkhtmltopdf with version 0.12.1-* or 0.12.5-* for Odoo 12. And I choose to use the newest Wkhtmltopdf which is version 0.12.5-1 for this tutorial.
Wkhtmltopdf has different package for Ubuntu and Debian, so we need to download these from different links.
Install Wkhtmltopdf 0.12.5-1 on Ubuntu 18.04.
- Download Wkhtmltopdf package for Ubuntu 18.04 from repository with command wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb
- Install Wkhtmltopdf package with command sudo dpkg -i wkhtmltox_0.12.5–1.bionic_amd64.deb
- Install dependency package with command sudo apt install -f
Install Wkhtmltopdf 0.12.5-1 on Debian 9
- Download Wkhtmltopdf package for Debian 9 from repository with command wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.stretch_amd64.deb
- Install Wkhtmltopdf package with command sudo dpkg -i wkhtmltox_0.12.5–1.stretch_amd64.deb
- Install dependency package with command sudo apt install -f
That's it. Thanks for reading. See you on next tutorial.