Enable Dark Mode!
how-to-configure-odoo-13-pycharm-windows-10.png
By: Sayooj ao

How to Configure Odoo 13 with Pycharm in Windows 10

Although installing and running Odoo in Windows OS is simpler when compared to Ubuntu. But when it comes to the development of Odoo it may be difficult for someone who is not familiar with Windows OS.
In this blog, we will be discussing the configuration on PyCharm for Odoo 13 development in the windows operating system.
We have to ensure the following steps while configuring PyCharm for Odoo development.
1. Installing required python (here python 3.6)
2. Installing PostgreSQL( latest version recommended)
3. Adding path of python, and PostgreSQL to the system variables.
4. pip installation

Python Installation
You can easily install python by downloading it from the following link, here we are installing python 3.6:
https://www.python.org/downloads/release/python-360/
There will be a list of applications from which you can choose one according to your system specifications and download it. The next step is to install PyCharm which is described in the following section.

PyCharm Installation
Similar to the Python installation you can download and install PyCharm. Moreover, it can be done from the following link:
https://www.jetbrains.com/pycharm/download/
After selecting the required file you can directly install it. The next step is to download the Odoo platform. 

Odoo 13 download
You can download the Odoo V13 from the Odoo repository as from the window depicted in the following image:

how-to-configure-salary-structure-in-odoo-13

In addition, either you can clone it or download as a zip folder.
Now the basic step of the operation is completed and we now have the python, PostgreSQL and PyCharm applications installed in your system.
The next step is to move on to create a new role. For that initially, go to the PostgreSQL installation directory using ‘cd’ (usually “C:\Program Files\PostgreSQL”). Moreover the following commands can be used:
cd "C:\Program Files\PostgreSQL\9.6\bin"
createuser.exe --createdb --username postgres --no-createrole --pwprompt odoo
Furthermore, you now have to add the path of python and PostgreSQL to the path for making it available in future actions. 
Add python to the path.
To add python to a path you can follow the following steps:
1. Open This PC right-click and select Properties.
2. In the sidebar, we can now see the Advanced system settings. 
3. After clicking on the Advanced system settings we have the option for adding Environment variables.
4. Go to System Variables and select path for it.
5. By clicking on New you will have the option for adding a new system variable. From there we can set the variable name and value. In addition, the value should be the path to the python directory which we installed and the name can be as per your convenience(For easy identification you can set Python3/Python etc..)
Now you can use the above similar steps for adding the Postgres to the path. Let's now move onto the pip installation in the next section.
Installing pip
Firstly, we have to download get-pip.py  which can be done from the website- https://bootstrap.pypa.io/get-pip.py . Further,  go to the download folder of this file and open cmd from this folder and run python get-pip.py.
Now you have to move to the final step which is to configure Odoo using the pycharm, which can be done by the following step:
1. Open pycharm
2. We have to create a .conf file, which can be done using the following code:
[options]
; admin_passwd = admin
db_host = localhost
db_port = 5432
db_user = odoo
db_password =odoo (the password you have provided when the user is created)
xmlrpc_port = 8555
addons_path = C:\Users\odoo13\addons 
3. If you need to change the running port just change the xmlrpc_port = your required port
4. If you meet with an error of module not being available you can install the module from pycharm itself by going to File -> Settings -> Project Interpreter there will be a ‘+’ sign while clicking on that we can search the required packages and install it directly from there as depicted in the following screenshot:

how-to-configure-salary-structure-in-odoo-13

Furthermore, the available page menu will be depicted to you just as shown in the following image. 

how-to-configure-salary-structure-in-odoo-13

In addition, you can also install the module through the PyCharm terminal. Moreover to have an understanding on how to install Odoo in windows read the following blog: How to Install Odoo in Windows


If you need any assistance in odoo, we are online, please chat with us.



0
Comments



Leave a comment

 
whatsapp
location

Calicut

Cybrosys Technologies Pvt. Ltd.
Neospace, Kinfra Techno Park
Kakkancherry, Calicut
Kerala, India - 673635

location

London

Cybrosys Limited
Alpha House,
100 Borough High Street, London,
SE1 1LB, United Kingdom

location

Kochi

Cybrosys Technologies Pvt. Ltd.
1st Floor, Thapasya Building,
Infopark, Kakkanad,
Kochi, India - 682030.

location

Bangalore

Cybrosys Techno Solutions
The Estate, 8th Floor,
Dickenson Road,
Bangalore, India - 560042

Send Us A Message