odoo在ubuntu最简单最快速安装方式是deb方式,基本无需再去改数据库配置文件,全自动化了,odoo中文网推荐新手采用此方法
1 安装数据库:sudo apt-get install postgresql
2.建立数据库帐号及密码:
sudo su postgres
createuser openerp
Shall the new role be a superuser? (y/n) y
psql template1
alter role openerp with password 'postgres';
3.安装所有python所需要的库:
sudo apt-get install python-dateutil python-feedparser python-gdata python-ldap python-libxslt1 python-lxml python-mako python-openid python-psycopg2 python-pybabel python-pychart python-pydot python-pyparsing python-reportlab python-simplejson python-tz python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-zsi python-pyPdf python-requests python-passlib python-decorator
4.在Ubuntu的更新来源/etc/apt/sources.list中增加一行:
稳定版 8.0: deb http://nightly.odoo.com/8.0/nightly/deb/ ./ (注意空格)
最新版 9.0: deb http://nightly.openerp.com/trunk/nightly/deb/ ./
5.更新来源: sudo apt-get update
如果出现错误:GPG error: http://nightly.odoo.com ./ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY DEF2A2198183CBB5
解决:sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DEF2A2198183CBB5
6.升级所有套件: sudo apt-get upgrade
7.安装doo: sudo apt-get install odoo
8.安装完成之后就可以通过浏览器访问了。http://hostname:8069
以上八个步骤,即可安装ODOO成功