1282017 How to configure PyCharm for Odo developmentin Windows?
CYBROSYS”
Togale navigation Technologies
odoo
mn
celine
By:Linto ,
8.25/09:2017 Welcome to Cybrosys!
Celine here from Marketing
Department to assist you
How to configure PyCharm for Odoo deve insy povise your emai 0 o
Contact Number to start ave chat
Installing Odoo in windows is the really easy task. We can do it b
development purposes, this method is not preferred. Pycharm is an ID} type neve and press enter.
development in Windows, Linux, and mac. In this blog, we will discuss
environment in windows using pycharm.
These are the steps we need to follow. Poweraby tawk-to
psi eybrosys.comiblogiconfigue-pychar-odoo-development-nindows 6‘wpeno17 How to configure PyCharm for Odo developmentin Windows?
1. Download and install python 2.7 from here
https: //www.python.org/downloads/release/python-2713/
based on your system architecture,
2. After installing python, we need to install Microsoft Visual C++ compiler. Go to this link
https://www.microsoft.com/en-us/download/details.aspx?id=44266
Download and install it.
3. Download PostgreSQL and configure.
https://www-enterprisedb.com/downloads/postgres-postgresql-downloads#windows
a.Create a new user for Odoo
You can either create a user (role) using the pgadmin or directly from the command prompt. For creating a
user with pgadmin, first, configure pgadmin and then go to the roles section and create a new role, Then
under the privileges tab of this role, provide all the access.
From the command prompt, you can create the user with the following commands.
First, go to the postgresql installation directory using ‘ca! (usually “C:\Program Files\PostareSQL”)
cd "C:\Program
.s\PostgreSQL\9.6\bin”
(Here °9.6' is my postgresq| version. Change it accordingly)
createuser.exe --createdb --
\sername postgres --no-createrole --pwprompt odoo
You will be asked for the password, provide a password and remember it. We may need it during odoo
installation:
4, Now download Pycharm from here https://www jetbrains.com/pycharm/download/#section=windows
and install
5. Download odoo https://github.com/odoo/odoo/archive/10.0.zip and extract the contents to a folder.
6, Open pycharm and create a project with the folder which we have extracted in the last step.
7. Now we need to install some packages for odoo. In the extracted odoo folder, we can find a
“requirements.tet’ file
> ed C:\ python27 (change to the location where python is installed, You can also do this from any
location if you add python path to your system’s path variable.
For this, go to My PC > Properties > Advanced System Settings > Environment Variables > and edit the path
and add your python path)
python -m pip install -r C:\Users\Odoo-10,0\requirements.txt (we hay Online
with its complete path.)
8, Download and install pywin32 from here.
https://sourceforge.net/projects/pywin32/files/pywin32/Bulld%20217/
You need to download the correct version based on your system architi
Note that you cannot install 64 bit pywin32 on a system with 32-bit PY ceane
saying that ‘Python is not found’.
‘Welcome to Cybrosyst
9. Download and install pip. Celine here from Marketing
https://bootstrap.pypa.io/get-pip.py . Download the file get-pip.py a1 Department to assist you.
location, Kindly provide your Email 1D or
Contact Number to start alive chat
> cd C:\python27
>python get-pip.py Type here and press enter.
10. Now we need to configure odoo.
Poweraby tawk-to
tps: cybrosys.comblogicanfigue-pychar-odoo-development-nindows‘wpeno17 How to configure PyCharm for Odo developmentin Windows?
Open pycharm and edit the file ‘odoo-server.conf” (usually, this file may be inside the Debian folder in odoo’s
folder)
Edit the contents like this,
j 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)
addons_path = C:\Users\odoo10\addons
You can change the default port of odoo by using ‘xmirpe_port = new port no.
11.Additional installations
We need to install some other features also, for working without errors.
= Install setuptools.
From cmd, run
> ed C:\python27
> python -m pip install --upgrade setuptools
~ Install Wheel & LxmI-3.6.4-¢p27-cp27m-win32.Whl
> cd C:\python27
> python -m pip install wheel
Go to this link http://www. Ifd.uci.edu/~-gohike/pythonlibs/-#Ixml and then from terminal,
> python -m pip install IxmI-3.6.4-cp27-cp27m-win32. whl
~ Install PSYCOPG2 from http://www.stickpeople.com/projects/python/win-psycopa/
~ Install nodejs
Go to https://nodejs.org/en/
> cd C:\Program Files\nodejs (here you specify installation location nosejs)
> npm install -g less less-plugin-clean-css
Install wkhtmitopdf from here https: //wkhtmltopdf.org/downloads.htm! (I prefer using version 12.1)
12.Now we need to create a service with pycharm
For this, open pycharm and under the run menu, go to edit configuratir
a new configuration, select python from the list. Now we need to select Online
script field, select the odoo-bin file.
In the script parameters section fill it like this, ~¢ /path to odoo.conf
/home/odoo/odoo-10.0/edoo.conf.
Now we can run Odoo from pycharm. cctne
‘Welcome to Cybrosyst
Celine here from Marketing
Department to assist you
Kindly provide your Email 1D or
Contact Number to start alive chat
Type here and press enter.
Next
Comments Powered by tawk.to-
tps: cybrosys.comblogicanfigue-pychar-odoo-development-nindows 316