During the installation process, an Internet connection is required to download the Python dependent library:
1. Installation: Windows Server R2 x64 Standard Edition
2. Install: Python 2.7.10 amd64 to C:\Python27 and add the following path to the PATH environment variable:
C:\Python27\; C:\Python27\Scripts;
3. Install: Oracle JDK 1.7 to C:\Java and configure Java_home environment variables, such as C:\Java\jdk1.7.0_71
4. Installation: PostgreSQL 9.4.4-3 x64 default installation and add the following path to the PATH environment variable:
C:\Program files\postgresql\9.4\bin\
Create a new user account with PG Admin (also called login role, login roles)
Name:odoo password:12345678
Note Add role Privileges permissions: Select "Can Create Databases"
5, Installation: Pycharm Professional 4.5.4 Professional Edition
Serial number self-Baidu
6. Installation: notepad++ 6.8.5
Easy to modify configuration files
7. Download Odoo Source code :
https://github.com/odoo/odoo/tree/8.0
https://github.com/odoo/odoo/tree/9.0
and separately extracted to the C:\odoo8\odoo and C:\odoo9\odoo directory, so that the purpose is to update the official source code, directly replace the Odoo directory can be.
Create Customaddon directories in the Odoo8 and odoo9 directories, respectively, for storing additional modules.
8. Download Dependent Python Library
Download and install PSYCOPG from http://www.stickpeople.com/projects/python/win-psycopg/
Psycopg2-2.6.1.win-amd64-py2.7-pg9.4.4-release
Modify the Requirements.txt files in the Odoo directory under the Odoo8 and Odoo9 directories, respectively:
Delete psycopg2== ... Yes, because the above is already installed
Delete the optional Python-ldap, gevent, and Psutil lines because they require compilation.
Add Pypiwin32 line to the end of the file because it is required under Windows.
Cmd.exe command line into the source root directory c:\> CD \odoo8\odoo
Then run C:\Python27\Scripts\pip.exe install-r requirements.txt
If a network outage occurs, rerun until all installation is successful
Cmd.exe command line into the source root directory c:\> CD \odoo9\odoo
Then run C:\Python27\Scripts\pip.exe install-r requirements.txt
If a network outage occurs, rerun until all installation is successful
Download Install Nodejs:node-v5.0.0-x64.msi and restart
Command line installs less and LESS-PLUGIN-CLEAN-CSS:
c:\> npm install-g Less less-plugin-clean-css
9. Download and install PDF generation Tool
Http://download.gna.org/wkhtmltopdf/0.12/0.12.2.4/wkhtmltox-0.12.2.4_msvc2013-win64.exe
After installation, add the C:\Program files\wkhtmltopdf\bin to the system PATH environment variable.
You can also get an Adobe Reader handy to view the exported PDF.
10. Modify the Run configuration file
From the \odoo\debian directory of Odoo8 and odoo9, copy the openerp-server.conf to the Odoo8 and odoo9 directories, and then open the edits with notepad++:
odoo8\openerp-server.conf file:
Db_host = localhost
Db_port = 5432
Db_user = Odoo
Db_password = 12345678
Addons_path = C:\odoo8\odoo\addons,c:\odoo8\customaddons
TimeZone = Asia/shanghai
Xmlrpc_port = 8888
odoo9\openerp-server.conf file:
Db_host = localhost
Db_port = 5432
Db_user = Odoo
Db_password = 12345678
Addons_path = C:\odoo9\odoo\addons,c:\odoo9\customaddons
TimeZone = Asia/shanghai
Xmlrpc_port = 9999
11. Command line start Odoo8 and odoo9
C:\Python27\python.exe C:\odoo8\odoo\odoo.py--config=c:\odoo8\openerp-server.conf
C:\Python27\python.exe C:\odoo9\odoo\odoo.py--config=c:\odoo9\openerp-server.conf
You can also build 2 batch files, add the above statements separately, and then directly double-click to run.
Then open the Chrome browser, ODOO8 access http://127.0.0.1:8888,odoo9 access to http://127.0.0.1:9999 to see the familiar set up the database page.
12, establish pycharm Debug Configuration
Start Pycharm, open C:\odoo8, wait a few minutes indexing complete
Menu Run-->edit configurations ...
Add a Python configuration
Name:odoo8
script:c:\odoo8\odoo\odoo.py
Script Parameters:--config=c:\odoo8\openerp-server.conf
Working directory; C:\odoo8\odoo
Start Pycharm, open C:\odoo9, wait a few minutes indexing complete
Menu Run-->edit configurations ...
Add a Python configuration
Name:odoo9
script:c:\odoo9\odoo\odoo.py
Script Parameters:--config=c:\odoo9\openerp-server.conf
Working directory; C:\odoo9\odoo
That's it.
Reference:
Official Document Https://www.odoo.com/documentation/8.0/setup/install.html#setup-install-source
Official Document Https://www.odoo.com/documentation/9.0/setup/install.html#setup-install-source
Build UBUNTU+PYCHARM+ODOO8 development Debugging Environment http://www.veryopen.org/?p=3125
Reprint: http://www.cnblogs.com/jlzhou/p/4928398.html
Configure Windows R2 64-bit Odoo 8.0/9.0 source development debugging environment