Skip to content

Instantly share code, notes, and snippets.

@bitsnaps
Created February 25, 2020 00:06
Show Gist options
  • Select an option

  • Save bitsnaps/06b0e01104e4af91e758b861377372ef to your computer and use it in GitHub Desktop.

Select an option

Save bitsnaps/06b0e01104e4af91e758b861377372ef to your computer and use it in GitHub Desktop.
Odoo v9 installation on ubuntu 14

Odoo v9 Installation Guide:

wget -O - https://nightly.odoo.com/odoo.key | apt-key add -
echo "deb http://nightly.odoo.com/9.0/nightly/deb/ ./" >> /etc/apt/sources.list
apt-get update && apt-get install odoo
apt-get upgrade

Download & install wkhtmltox:

# sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.trusty_amd64.deb

sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb

echo OR:

# sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.trusty_i386.deb

sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.1/wkhtmltox-0.12.1_linux-trusty-i386.deb

install wkhtmltox:

sudo apt-get install gdebi-core -y

echo 64bit:
sudo gdebi --n wkhtmltox-0.12.1_linux-trusty-amd64.deb

echo 32bit:
sudo gdebi --n wkhtmltox-0.12.1_linux-trusty-i386.deb

sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin
sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin

Change template0:

sudo -u postgres psql postgres

update pg_database set datallowconn = TRUE where datname = 'template0';
\c template0
update pg_database set datistemplate = FALSE where datname = 'template1';
drop database template1;
create database template1 with template = template0 encoding = 'UTF8';
update pg_database set datistemplate = TRUE where datname = 'template1';
\c template1
update pg_database set datallowconn = FALSE where datname = 'template0';

Run:

sudo odoo.py --addons-path=/usr/lib/python2.7/dist-packages/openerp/addons

Then run URL: http://odoo-server.run-eu-central1.goorm.io/

P.S. You might need to make python2 the default python version: create ~/.bash_aliases with:

alias python='python2'

None issue: When you click on Export PDF on Finance Reporting menu item you might get Odoo Server Error, here is a workaround: odoo/odoo#16515

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment