Now we need to create a service with pycharm.
Npm install -g less less-plugin-clean-cssį) Install wkhtmltopdf from here (I prefer using version 12.1)ġ2. Go to cd C:\Program Files\nodejs (here you specify installation location nodejs) Python -m pip install wheel c) Go to this link and then from a terminal, python -m pip install lxml-3.6.4-cp27-cp27m-win32.whl d) Install PSYCOPG2 from Python -m pip install -upgrade setuptools b) Install Wheel & Lxml-3.6.4-cp27-cp27m-win32.Whl cd C:\python27 a) Install setup tools: From cmd, run cd C:\python27 Additional installations need to install some other features also, for working without errors.
Now we need to configure odoo.Open pycharm and edit the file ‘nf’ (usually, this file may be inside the Debian folder in odoo’s folder)Edit the contents like this, admin_passwd = adminĭb_password =odoo (the password you have provided when the user is created)Īddons_path = C:\Users\odoo10\addons You can change the default port of odoo by using ‘xmlrpc_port = new port no.’11. the file get-pip.py and move it to the python installation location.
It will show an error saying that ‘Python is not found’.ĩ.
Note that you cannot install 64 bit pywin32 on a system with 32-bit python installed.
You need to download the correct version based on your system architecture and python.
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 have to specify the ‘requirements.txt’ file with its complete path.)Ĩ. You can also do this from any location if you add a python path to your system’s path variable. Now we need to install some packages for odoo.In the extracted odoo folder, we can find a ‘requirements.txt’ file.Ĭd C:\ python27 (change to the location where python is installed. Open pycharm and create a project with the folder which we have extracted in the last step.ħ. Download odoo and extract the contents to a folder.Ħ. Now download Pycharm from here and install.ĥ. We may need it again during Odoo installation.4. Change it accordingly) createuser.exe -createdb -username postgres -no-createrole -pwprompt odoo You will be asked for the password, provide a password, and remember it. First, go to the PostgreSQL installation directory using ‘cd’ (usually “C:\Program Files\PostgreSQL”) cd "C:\Program Files\PostgreSQL\9.6\bin" (Here ‘9.6’ is my PostgreSQL version. From the command prompt, you can create the user with the following commands. Then under the privileges tab of this role, provide all the access. For creating a user with pgadmin, first, configure pgadmin and then go to the roles section and create a new role.
You can either create a user (role) using the pgadmin or directly from the command prompt. After installing python, we need to install the Microsoft Visual C++ compiler. Download and install python 2.7 from here Ģ. In this blog, we will discuss setting up the Odoo development environment in windows using pycharm. Pycharm is an IDE that can be used for Odoo development in Windows, Linux, and mac. But for development purposes, this method is not preferred. We can do it by just running the ‘.exe’ file. Testsuite.Installing Odoo in windows is really an easy task. Testsuite.1St Test :: This is a simple test with Robot Framework
*** Settings ***ĭocumentation This is a simple test with Robot FrameworkĪfter running the output should look like this: /usr/local/bin/pybot testsuite/ Now we create inside the “testsuite” directory a file called “1st_test.robot” with following content. $ sudo pip install robotframework-selenium2library For this we need to install the “selenium2library”. In the next steps we create a first very simple test automation. The output should show something like this: /usr/local/bin/pybot testsuite/ Insert a value for “Name”, enable checkbox “Open console”, insert “pybot” into Program, “test suite/” into Parameters and select you specific Working directory.Īfter press “OK” buttons, go to menu “Tools” – “External Tools” and select your given name. Open “Preferences” – “Tools” – “External Tools” and press “+” button. Now create a new directory “testsuite” with new file named “example.robot” inside and insert the following content. Press “Browse repositories…” button and search for “Intellibot”. Press “Install plugin” button and restart P圜harm. Now start P圜harm and open “Preferences” – “Plugins”. $ sudo pip install -upgrade robotframework
# install Robot Framework (if not listed) After this small setup you can use P圜harm for your test automation with Robot Framework. This tutorial should show, how easy it is to use the Robot Framework with P圜harm.