Install odoo-11.0 from source on Windows
Download and install Git for Windows.
Download and install Node.js LTS.
Launch Git Bash
as Administrator.
- Install
Less.js
by$ npm install -g less less-plugin-clean-css
Download and install PostgreSQL.
add PostgreSQL's bin
directory (default: C:\Program Files\PostgreSQL\x.x\bin
) to your PATH
.
create a postgres
user with a password using the PgAdmin
GUI:
- open
PgAdmin4
, - expand
server
node to create a connection, - expand
PostgreSQL
node, - select Object-> Create -> Login/Group Role,
- enter the username in the
Role Name
field (e.g. odoo), - open the
Definition
tab and enter the password (e.g. odoo), - open the
Privileges
tab and givelogin
andcreate database
rights,
- enter the username in the
- click
save
.
Download and install Python3.
- goto
Python3
installation directory (default:C:\Users\UserName\AppData\Local\Programs\Python\PythonXX
. - rename
python.exe
topython3.exe
andpythonw.exe
topythonw3.exe
. - add
Python3
installation directory (default:C:\Users\UserName\AppData\Local\Programs\Python\PythonXX
) to yourPATH
.
Launch Git Bash
as Administrator (for all pip
installation).
- Install
pypiwin32
by$ python3 -m pip install pypiwin32
- Install
Pillow
by$ python3 -m pip install Pillow-3.4.2-cp36-cp36m-win_amd64.whl
- Install
gevent
by$ python3 -m pip install gevent-1.2.2-cp36-cp36m-win_amd64.whl
- Install
lxml
by$ python3 -m pip install lxml-3.8.0-cp36-cp36m-win_amd64.whl
- Install
psutil
by$ python3 -m pip install psutil-5.3.1-cp36-cp36m-win_amd64.whl
- Install
psycopg2
by$ python3 -m pip install psycopg2-2.7.3-cp36-cp36m-win_amd64.whl
- Install
pyldap
by$ python3 -m pip install pyldap-2.4.37-cp36-cp36m-win_amd64.whl
- Install
reportlab
by$ python3 -m pip install reportlab-3.4.0-cp36-cp36m-win_amd64.whl
Install remaining requirements
using
$ python3 -m pip install -r requirements.txt
$ python3 -m pip install -U werkzeug
Download and install wkhtmltopdf.
Add wkhtmltopdf's bin
directory (default: C:\Program Files\wkhtmltopdf\bin
) to your PATH
.
Launch Git Bash
.
Goto odoo
directory and run odoo
using
$ python3 odoo-bin -w odoo -r odoo --addons-path=addons --log-level=debug_rpc