Setup Odoo Environment, Start Development
Setup Odoo Environment, Start Development
Note: during Installation, please change the path to be in C in your computer; if you don’t change it
python will be installed in App Data which may cause a problem
If you face Problem, “application server could not be contacted”, then solve it by :
Install PgAdmin 4
Then if you still face problem , then clearing out the C:\Users\%USERNAME
%\AppData\Roaming\pgAdmin
4- In PostgreSQL go to Login/group rules in order to create Odoo user with full privileges by follow steps
in following screenshots :
a-
b- Set Name as example “odoo”
Please remember user and password because you will use it later on odoo.conf
9. Navigate to debian in odoo folder and copy Odoo.conf to the Odoo main root
10. Open odoo folder in PyCharm
11. In the Odoo main root, open Odoo.conf and edit the following:
o db_port = set up as port appeared during PostgreSQL installation
o db_user = as you set in PostgreSQL ( it is the user that set in step 4 in screenshot b “odoo”)
o db_password = as you set in PostgreSQL ( it is the password that set in step 4 in screenshot c
“odoo”)
o addons_path= the addons folder path, and the custom addons path.
o bin_path=C:\Program Files\wkhtmltopdf\bin
o pg_path=C:\Program Files\PostgreSQL\10.6\bin
12. In Cmd , run command npm install --global windows-build-tools; Note: this step doesn’t required if
you have visual studio
13. In Cmd , Navigate to python folder / Scripts , then run command pip install –r your-odoo-
path\requirements.txt
a-
b-
c-
d-
e-
15. In Pycharm , Click on the configuration button (beside the run button) and choose edit configurations
as following screenshot:
o Then fill following Info :