{"id":1027,"date":"2020-03-20T05:10:37","date_gmt":"2020-03-20T00:10:37","guid":{"rendered":"https:\/\/kics.edu.pk\/essl\/?p=1027"},"modified":"2020-04-01T17:01:28","modified_gmt":"2020-04-01T12:01:28","slug":"setting-up-odoo","status":"publish","type":"post","link":"https:\/\/kics.edu.pk\/essl\/blog\/setting-up-odoo\/","title":{"rendered":"Setting up the Odoo Development Environment in Windows"},"content":{"rendered":"\n<p><span style=\"color: #000000;\">In this post, I will demonstrate how to set up the Odoo development environment on Windows 10 with Eclipse as the IDE. This tutorial is valid for all Odoo Versions.\u00a0<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">For Odoo Upto Version 10, use Python 2.7.16.<\/span><\/li>\n<li><span style=\"color: #000000;\">For Odoo version 11 and onwards, use Python version 3.5 or above.<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">This tutorial is effective for windows with no pre-installed tools e.g. JDK, Python, or eclipse. You may skip to the next step if you have already installed any of the above-mentioned tools.<\/span><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_76 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/kics.edu.pk\/essl\/blog\/setting-up-odoo\/#Executive_Summary\" >Executive Summary\u00a0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/kics.edu.pk\/essl\/blog\/setting-up-odoo\/#1_Python_Installation\" >1. Python Installation<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/kics.edu.pk\/essl\/blog\/setting-up-odoo\/#2_PostGre_Installations\" >2. PostGre Installations\u00a0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/kics.edu.pk\/essl\/blog\/setting-up-odoo\/#3_JDK_Installation\" >3. JDK Installation<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/kics.edu.pk\/essl\/blog\/setting-up-odoo\/#4_Install_Setup_Eclipse\" >4. Install &amp; Setup Eclipse<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/kics.edu.pk\/essl\/blog\/setting-up-odoo\/#Install_PyDev\" >Install PyDev<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/kics.edu.pk\/essl\/blog\/setting-up-odoo\/#Configure_python_interpreter\" >Configure python interpreter<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/kics.edu.pk\/essl\/blog\/setting-up-odoo\/#5_Get_Odoo_from_Git_using_Eclipse\" >5. Get Odoo from Git using Eclipse<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/kics.edu.pk\/essl\/blog\/setting-up-odoo\/#6_Installing_Prerequisite_python_packages_for_Odoo\" >6. Installing Prerequisite python packages for Odoo<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/kics.edu.pk\/essl\/blog\/setting-up-odoo\/#7_Setup_Run_Odoo_in_Eclipse\" >7. Setup &amp; Run Odoo in Eclipse<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/kics.edu.pk\/essl\/blog\/setting-up-odoo\/#Open_Odoo_In_Pydev_Perspective_Project\" >Open Odoo In Pydev Perspective Project<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/kics.edu.pk\/essl\/blog\/setting-up-odoo\/#Setup_config_file_and_Run_configuration\" >Setup config file and Run configuration<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/kics.edu.pk\/essl\/blog\/setting-up-odoo\/#Run_Odoo_from_Eclipse\" >Run Odoo from Eclipse<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Executive_Summary\"><\/span><span style=\"color: #000000;\">Executive Summary\u00a0<\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li><span style=\"color: #000000;\">Install Python 2.7.16 (For Odoo Upto 10) &amp; Python 3.5 (For Odoo above 10)<\/span><\/li>\n<li><span style=\"color: #000000;\">Install the Postgre Database Management System<\/span><\/li>\n<li><span style=\"color: #000000;\">Install JDK (For Eclipse)<\/span><\/li>\n<li><span style=\"color: #000000;\">Install &amp; Setup Eclipse<\/span>\n<ul style=\"list-style-type: circle;\">\n<li><span style=\"color: #000000;\">Install PyDev<\/span><\/li>\n<li><span style=\"color: #000000;\">Configure python interpreter<\/span><\/li>\n<\/ul>\n<\/li>\n<li><span style=\"color: #000000;\">Get Odoo X( X is the Desired Version) clone from Git<\/span><\/li>\n<li><span style=\"color: #000000;\">Installation of prerequisite python packages for Odoo<\/span><\/li>\n<li><span style=\"color: #000000;\">Setup &amp; Run Odoo in Eclipse<\/span>\n<ul style=\"list-style-type: circle;\">\n<li><span style=\"color: #000000;\">Open Odoo In Pydev Perspective Project<\/span><\/li>\n<li><span style=\"color: #000000;\">Setup config file &amp; Run configuration.<\/span><\/li>\n<li><span style=\"color: #000000;\">Run Odoo from Eclipse<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"1_Python_Installation\"><\/span><span style=\"color: #000000;\"><strong>1. Python Installation<\/strong><\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"color: #000000;\">Download and install Python version 2.7.16 from the following link.<\/span><br \/><span style=\"color: #000000;\"><u><a style=\"color: #000000;\" href=\"https:\/\/www.python.org\/downloads\/release\/python-2716\/\">https:\/\/www.python.org\/downloads\/release\/python-2716\/<\/a><\/u><\/span><\/p>\n<p><span style=\"color: #000000;\">For Odoo above 10, install python 3.5 or above from the following link.<\/span><\/p>\n<p><span style=\"color: #000000;\"><u><a style=\"color: #000000;\" href=\"https:\/\/www.python.org\/downloads\/\">https:\/\/www.python.org\/downloads\/<\/a><\/u><\/span><\/p>\n<p><span style=\"color: #000000;\">After installation add the python &amp; pip home page<\/span><\/p>\n<p><span style=\"color: #000000;\"><em>Note: Don\u2019t forget to choose the installation path in system variables<\/em>.<\/span><\/p>\n<p><span style=\"color: #000000;\">For choosing the installation path,<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">Open \u201c<strong>Edit the System environment variables<\/strong>\u201d from the Windows StartMenu by typing \u201c<strong>env<\/strong>\u201d in the start search.<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1025 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/1-300x169.png\" alt=\"\" width=\"385\" height=\"217\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/1-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/1-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/1-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/1-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/1.png 1366w\" sizes=\"auto, (max-width: 385px) 100vw, 385px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">In System Properties,<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">Open \u201c<strong>Environment Variables<\/strong>\u201d &amp; double click<\/span><\/li>\n<li><span style=\"color: #000000;\">After opening, \u201c<strong>Environment variables<\/strong> &gt;&gt; <strong>SystemVariables<\/strong>\u201d window as shown below,<\/span><\/li>\n<li><span style=\"color: #000000;\">Open the <strong>Path <\/strong>variable which is placed at the left side of the <strong>System Variable Window. <\/strong>(As shown below in the figure)<\/span><\/li>\n<\/ul>\n<figure id=\"attachment_1028\" aria-describedby=\"caption-attachment-1028\" style=\"width: 370px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-1028\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/2-300x169.png\" alt=\"\" width=\"370\" height=\"208\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/2-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/2-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/2-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/2-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/2.png 1366w\" sizes=\"auto, (max-width: 370px) 100vw, 370px\" \/><figcaption id=\"caption-attachment-1028\" class=\"wp-caption-text\"><span style=\"color: #000000;\">Installation path for python<\/span><\/figcaption><\/figure>\n<p><span style=\"color: #000000;\">This will lead to an open \u201c <strong>Edit Environment variable<\/strong>\u201d window. Click <strong>\u2018New\u2019 <\/strong>and edit your Python installation path and the path to the <strong>Scripts <\/strong>folder in the Python Directory ( both separately).<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>Example:<\/strong>\u00a0 Here is an example, I have chosen (<em>C:\\Python27<\/em>, and <em>C:\\Python27\\Scripts<\/em>)<\/span><\/p>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1030 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/3-300x169.png\" alt=\"\" width=\"335\" height=\"189\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/3-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/3-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/3-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/3-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/3.png 1366w\" sizes=\"auto, (max-width: 335px) 100vw, 335px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">After that to check your installation,<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">Open <strong>cmd\/powershel<\/strong>.<\/span><\/li>\n<li><span style=\"color: #000000;\">Type <strong><em>python &#8211;version<\/em><\/strong> and hit enter, It will show your installed python version.<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">Then to check the pip version,<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">Type <strong><em>pip &#8211;version<\/em><\/strong> to check if it is installed and ready to use (As shown in the figure below)<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1031 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/4-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/4-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/4-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/4-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/4-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/4.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">You will observe whether the versions are ready to use, If not, please check if the <strong>path <\/strong>is\u00a0 configured correctly in the <strong>system variables<\/strong>.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"2_PostGre_Installations\"><\/span><span style=\"color: #000000;\">2. PostGre Installations\u00a0<\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"color: #000000;\">Download and install <strong>PostgreSQL DBMS<\/strong> from the following link.<\/span><\/p>\n<p><span style=\"color: #000000;\"><u><a style=\"color: #000000;\" href=\"https:\/\/www.postgresql.org\/download\/windows\/\">https:\/\/www.postgresql.org\/download\/windows\/<\/a><\/u><\/span><\/p>\n<p><span style=\"color: #000000;\">After installation,<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">Run <strong>pgAdmin 4<\/strong> from Start Menu to start the database server.<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1035 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/5-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/5-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/5-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/5-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/5-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/5.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">It will open in a default browser or if you are opening it for the first time, it may ask you to choose the browser for opening the interface.<\/span><\/li>\n<li><span style=\"color: #000000;\">Select your browser (if it asks)<\/span><\/li>\n<li><span style=\"color: #000000;\">After the selection of the browser, the server will start running.<\/span><\/li>\n<li><span style=\"color: #000000;\">After getting loaded in the browser it will ask password as an initial popup.<\/span><\/li>\n<li><span style=\"color: #000000;\">The password by default is \u201c<em>admin<\/em>\u201d and can be changed afterward.<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\"><em>Note:\u00a0 The password is required every time when the server run or re-run or when the server is restarted after shutting down.<\/em><\/span><\/p>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1037 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/6-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/6-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/6-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/6-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/6-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/6.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"3_JDK_Installation\"><\/span><span style=\"color: #000000;\">3. JDK Installation<\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"color: #000000;\">Download and install <strong>Java Development Kit<\/strong> from the following link.<\/span><\/p>\n<p><span style=\"color: #000000;\"><u><a style=\"color: #000000;\" href=\"https:\/\/www.oracle.com\/java\/technologies\/javase\/javase-jdk8-downloads.html\">https:\/\/www.oracle.com\/java\/technologies\/javase\/javase-jdk8-downloads.html<\/a><\/u><\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">Add the <strong>JAVA_HOME <\/strong>as a new variable with the name <strong>JAVA_HOME<\/strong> in the System Variables.<\/span><\/li>\n<li><span style=\"color: #000000;\">Value the added variable as the <strong>path of your java installation<\/strong>. Also, add the installation path to the system variable <strong>path<\/strong>.<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\"><strong>Example:<\/strong> Here, I have chosen the java home path is (<em>C:\\Program Files\\Java\\jre1.8.0_231<\/em>) and the same is configured in the system variable <strong>path<\/strong>.<\/span><\/p>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1039 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/7-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/7-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/7-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/7-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/7-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/7.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">For checking if the <strong>JDK <\/strong>installation was successful and the variables are configured correctly,<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">Open <strong>cmd\/powershell <\/strong>and Type <strong><em>java -version<\/em><\/strong> and <strong><em>echo %JAVA_HOME%<\/em><\/strong><\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">If you get the following output the JDK is installed and configured correctly.<\/span><\/p>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1040 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/8-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/8-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/8-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/8-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/8-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/8.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"4_Install_Setup_Eclipse\"><\/span><span lang=\"EN\" style=\"color: #000000;\">4. Install &amp; Setup Eclipse<\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"color: #000000;\">Download and install <strong>Eclipse<\/strong> from the following link.<\/span><\/p>\n<p><span style=\"color: #000000;\"><u><a style=\"color: #000000;\" href=\"https:\/\/www.eclipse.org\/downloads\/\">https:\/\/www.eclipse.org\/downloads\/<\/a><\/u><\/span><\/p>\n<p><span style=\"color: #000000;\">From Eclipse installer choose the \u201c<strong>Eclipse IDE for javascript and web developers(&#8230;)<\/strong>\u201d. As shown below.<\/span><\/p>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1041 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/9-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/9-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/9-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/9-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/9-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/9.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<h4><span class=\"ez-toc-section\" id=\"Install_PyDev\"><\/span><span style=\"color: #000000;\">Install PyDev<\/span><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><span style=\"color: #000000;\">After Eclipse is installed,<\/span><\/p>\n<p><span style=\"color: #000000;\">Open, Select <strong><em>Help <\/em><\/strong>&gt;&gt;<strong><em> Install new Software<\/em><\/strong> to install <strong>PyDev<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1042 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/10-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/10-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/10-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/10-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/10-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/10.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">In the <strong>Install <\/strong>window, Type \u201c<strong><u><a style=\"color: #000000;\" href=\"http:\/\/pydev.org\/updates\">http:\/\/pydev.org\/updates<\/a><\/u><\/strong>\u201d in the <strong>Work with <\/strong>the It would show you the available PyDev.<\/span><\/li>\n<li><span style=\"color: #000000;\">Select Both options as shown below, and Complete the Installation by clicking <strong>Next<\/strong>. (<em>Note: if asked for license agreement prompts, <strong>agree <\/strong>and <strong>complete <\/strong>the installation process)<\/em>.<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1043 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/11-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/11-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/11-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/11-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/11-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/11.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<h4><span class=\"ez-toc-section\" id=\"Configure_python_interpreter\"><\/span><span style=\"color: #000000;\">Configure python interpreter<\/span><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><span style=\"color: #000000;\">Now, the next step is to Setup eclipse\u2019s Perspective to work with Python.<\/span><\/p>\n<p><span style=\"color: #000000;\">Click <strong>Window <\/strong>-&gt; <strong>Open Perspective<\/strong> -&gt; <strong>Other <\/strong>and from the Window Select <strong>Pydev <\/strong>and Click <strong>OPEN<\/strong>. (as shown in the figure below,<\/span><\/p>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1044 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/12-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/12-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/12-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/12-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/12-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/12.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">The next step is to set up the Interpreter for python.<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">For doing it, Click <strong>Windows <\/strong>-&gt; <strong>Preference <\/strong>and In the Left Pane,<\/span><\/li>\n<li><span style=\"color: #000000;\">Select <strong>Pydev <\/strong>and the<strong> Interpreter Python<\/strong><\/span><\/li>\n<li><span style=\"color: #000000;\">Then on the Right side click the \u201c<strong>Browse for python\/pypy exe<\/strong>\u201d, and select the python from the installed path. Click Apply and the System will automatically detect Your python version and setup paths and rest of environment variables.<\/span><\/li>\n<li><span style=\"color: #000000;\">Click OK to Close this Windows once the eclipse is done setting up Environment.<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\"><em>Note: The process is shown in the figure below.<\/em><\/span><\/p>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1045 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/13-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/13-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/13-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/13-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/13-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/13.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"5_Get_Odoo_from_Git_using_Eclipse\"><\/span><span style=\"color: #000000;\">5. Get Odoo from Git using Eclipse<\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"color: #000000;\">Now we need to setup the GIT repository in order to download Odoo Source code.<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">To do so, in Eclipse Click <strong><em>Windows <\/em><\/strong>-&gt; <strong><em>Open Perspective <\/em><\/strong>-&gt; <strong><em>Other <\/em><\/strong>(As shown in the figure below).<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1047 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/14-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/14-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/14-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/14-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/14-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/14.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">In the next window select <strong>Git <\/strong>and click <strong>OPEN<\/strong>.<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1048 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/15-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/15-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/15-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/15-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/15-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/15.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">In Git perspective select \u201c<strong>Clone a Repository<\/strong>\u201d. If you have no repository, you might see \u201c<strong>Clone a Git Repository<\/strong>\u201d option right in the middle of Git Repositories window, click that.<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1049 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/16-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/16-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/16-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/16-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/16-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/16.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">On the next window fill the <strong>URI <\/strong>field with \u201c<strong><u><a style=\"color: #000000;\" href=\"https:\/\/github.com\/odoo\/odoo.git\">https:\/\/github.com\/odoo\/odoo.git<\/a><\/u><\/strong>\u201c as shown below. The Rest of the Fields will get auto-fill. Click <strong>Next<\/strong>.<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1050 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/17-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/17-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/17-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/17-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/17-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/17.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">The following will ask you to select the <strong>version <\/strong>you want to clone.<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">Click \u201c<strong>Deselect All\u201d<\/strong> and then Select the Odoo version you want to clone and press <strong>Next<\/strong>.<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1051 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/18-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/18-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/18-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/18-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/18-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/18.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">The following window would ask for the <strong>Local Destination<\/strong>.<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">Set a directory manually. Keep in mind it would be used in setting up <strong>Odoo prerequisite packages<\/strong> and for Opening Odoo in <strong>PyDev <\/strong>perspective project, So consider selecting the path manually.<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">Click <strong>Finish <\/strong>and it will clone the Odoo selected version in the specified directory. <em>(Note: It may take some time as downloading is involved.)<\/em><\/span><\/p>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1053 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/19-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/19-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/19-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/19-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/19-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/19.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"6_Installing_Prerequisite_python_packages_for_Odoo\"><\/span><span style=\"color: #000000;\">6. Installing Prerequisite python packages for Odoo<\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"color: #000000;\">First of all Install psycopg using the installer here: <u><a style=\"color: #000000;\" href=\"http:\/\/www.stickpeople.com\/projects\/python\/win-psycopg\/\">http:\/\/www.stickpeople.com\/projects\/python\/win-psycopg\/<\/a><\/u><\/span><\/p>\n<p><span style=\"color: #000000;\">Modify the <strong>requirements.txt<\/strong> file, this file is present in the main directory of <strong>Odoo <\/strong>Version cloned from Git in the previous step.<\/span><\/p>\n<p><span style=\"color: #000000;\">To edit the <strong>requirements.txt<\/strong> file do the following:<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">Remove <strong>psycopg2 <\/strong>as you already have it.<\/span><\/li>\n<li><span style=\"color: #000000;\">Remove the optional <strong>python-ldap<\/strong>, <strong>gevent <\/strong>and <strong>psutil <\/strong>because they require compilation.<\/span><\/li>\n<li><span style=\"color: #000000;\">Add <strong>pypiwin32 <\/strong>because it is a requirement of windows.<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">Then, Use <strong>pip <\/strong>to install the dependencies using the following command from a <strong>cmd\/powershell<\/strong> prompt (replace<em> <strong>\\YourOdooPath<\/strong><\/em> by the actual path where you have downloaded <strong>Odoo<\/strong>, also change your <strong>pip <\/strong>path if it is different.).<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong><em>C:\\&gt; cd \\YourOdooPath<\/em><\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\"><strong><em>C:\\YourOdooPath&gt; C:\\Python27\\Scripts\\pip.exe install -r requirements.txt<\/em><\/strong><\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"7_Setup_Run_Odoo_in_Eclipse\"><\/span><span style=\"color: #000000;\"><strong>7. Setup &amp; Run Odoo in Eclipse<\/strong><\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"Open_Odoo_In_Pydev_Perspective_Project\"><\/span><span style=\"color: #000000;\"><strong>Open Odoo In Pydev Perspective Project<\/strong><\/span><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><span style=\"color: #000000;\">Now for importing the Odoo source code into Eclipse<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">Click <strong>File <\/strong>-&gt; <strong>Pydev Project<\/strong>.<\/span><\/li>\n<li><span style=\"color: #000000;\">In project name, Type odoo (or any name as a project title).<\/span><\/li>\n<li><span style=\"color: #000000;\">Uncheck<strong> Use Default<\/strong> and click <strong>Browse <\/strong>and select the source <strong>directory <\/strong>where the Odoo is cloned as shown below and click <strong>Finish<\/strong>.<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1055 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/20-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/20-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/20-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/20-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/20-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/20.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<h4><span class=\"ez-toc-section\" id=\"Setup_config_file_and_Run_configuration\"><\/span><span style=\"color: #000000;\"><strong>Setup config file and Run configuration<\/strong><\/span><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><span style=\"color: #000000;\">Now Open the config file of Odoo from its debian directory and fill the attributes as shown below,<\/span><\/p>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1056 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/21-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/21-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/21-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/21-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/21-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/21.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">[options]<\/span><\/p>\n<p><span style=\"color: #000000;\">This is the password that allows database operations:<\/span><\/p>\n<p><span style=\"color: #000000;\">admin_passwd = admin<\/span><\/p>\n<p><span style=\"color: #000000;\">db_host = localhost<\/span><\/p>\n<p><span style=\"color: #000000;\">db_port = 5432<\/span><\/p>\n<p><span style=\"color: #000000;\">db_user = odoo<\/span><\/p>\n<p><span style=\"color: #000000;\">db_password = pass<\/span><\/p>\n<p><span style=\"color: #000000;\">addons_path = D:\\odoo\\addons,D:\\odoo\\openerp\\addons<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">Here <strong>db_user<\/strong> is referred to the database user you have created in <strong>Postgresql server<\/strong>, and <strong>db_password<\/strong> referred to as its password.<\/span><\/li>\n<li><span style=\"color: #000000;\">It must be noted to set <strong>addon_path<\/strong> in accordance with the Odoo directory that differs for each user.<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">(Note: For some users, it shows errors when the file is placed in Disk C. So try changing file location.)<\/span><\/p>\n<p><span style=\"color: #000000;\">As the config file is setup. Next is to Setup Run configuration, for doing it<\/span><\/p>\n<p><span style=\"color: #000000;\">Click <strong>Run <\/strong>in the menu and select <strong>Run configuration<\/strong>.<\/span><\/p>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1057 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/22-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/22-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/22-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/22-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/22-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/22.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">In Run Configuration windows as shown in the figure,<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">Under Python run (at the left side)<\/span><\/li>\n<li><span style=\"color: #000000;\">Select your project by clicking on <strong>Browse <\/strong>in <strong>Main Tab<\/strong>. As soon as you will select the project, the <strong>\u201cProject\u201d<\/strong> &amp; <strong>\u201c Main Module\u201d<\/strong> field will get filled automatically.<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1058 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/23-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/23-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/23-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/23-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/23-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/23.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">After that Click on <strong>Arguments <\/strong>Tab in the same window and click <strong>Variables <\/strong>in the <strong>Program Argument<\/strong> section under the tab ( As shown in the figure).<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1060 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/24-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/24-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/24-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/24-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/24-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/24.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">Press <strong>Edit Variables <\/strong>on the next window.<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1061 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/25-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/25-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/25-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/25-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/25-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/25.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">Now add a <strong>new variable<\/strong> with any name but the value must be in the following format:<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\"><strong><em>&#8211;config=D:\\odoo\\debian\\openerp-server.conf<\/em><\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">Here the path is of the configuration file that we have just configured.<\/span><\/p>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1062 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/26-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/26-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/26-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/26-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/26-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/26.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">Now click Apply and Close.<\/span><\/li>\n<li><span style=\"color: #000000;\">In the earlier <strong>Select Variable Window<\/strong> (shown in figure 3).<\/span><\/li>\n<li><span style=\"color: #000000;\">Add this newly created variable by typing its name and double-clicking it in the <strong style=\"font-size: inherit;\">Select Variable <\/strong><span style=\"font-size: inherit;\">window.<\/span><\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1063 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/27-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/27-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/27-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/27-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/27-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/27.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">Now it will show in the Program argument as ${Odoo} symbol (As shown in the figure below).<\/span><br \/><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1064 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/28-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/28-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/28-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/28-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/28-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/28.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">Now the Run configuration is completed. Now we need to Run the Odoo From Eclipse that is connected to the Running Database server of Postgre and is running the python using PyDev Perspective.<\/span><\/p>\n<h4><span class=\"ez-toc-section\" id=\"Run_Odoo_from_Eclipse\"><\/span><span style=\"color: #000000;\"><strong>Run Odoo from Eclipse<\/strong><\/span><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><span style=\"color: #000000;\">Now run the project from the menu.<\/span><\/p>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1065 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/29-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/29-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/29-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/29-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/29-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/29.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">The server will start running as shown below.<\/span><\/p>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1066 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/30-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/30-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/30-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/30-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/30-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/30.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">Look at the log in the console window. If not found, activate the console window from the menu <strong>Window <\/strong>&gt;&gt; <strong>Show View<\/strong> &gt;&gt; <strong>Console<\/strong>. (As shown in the figure below)<\/span><\/p>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1067 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/31-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/31-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/31-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/31-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/31-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/31.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1068 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/32-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/32-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/32-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/32-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/32-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/32.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">Now as the server is running successfully. Open any web browser and Type the address <strong><em>localhost:8069<\/em><\/strong> to get the web interface up and running<\/span><\/p>\n<p><span style=\"color: #000000;\">The Screenshot of running Odoo environment is shown below.<\/span><\/p>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1069 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/33-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/33-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/33-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/33-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/33-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/33.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/> <\/span><\/p>\n<p><span style=\"color: #000000;\">After creating a database the dashboard would change to the following which is shown in the screenshot below.<\/span><\/p>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1070 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/34-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/34-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/34-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/34-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/34-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/34.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<p><span style=\"color: #000000;\">The address port is mentioned in the <strong>Console log<\/strong> as well when the server is run<\/span><\/p>\n<p><span style=\"color: #000000;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1071 aligncenter\" src=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/35-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/35-300x169.png 300w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/35-1024x576.png 1024w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/35-768x432.png 768w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/35-133x75.png 133w, https:\/\/kics.edu.pk\/essl\/wp-content\/uploads\/2020\/03\/35.png 1366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/span><\/p>\n<p>That&#8217;s it, the Odoo Development environment is configured and ready in windows with Eclipse (PyDev).<\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":1108,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[13,105],"tags":[107,44,108,17,31,106,110,112],"class_list":["post-1027","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","category-technical-training","tag-eclipse","tag-essl","tag-jave-development-kit","tag-kics","tag-odoo","tag-python","tag-technical-training","tag-windows"],"_links":{"self":[{"href":"https:\/\/kics.edu.pk\/essl\/wp-json\/wp\/v2\/posts\/1027","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kics.edu.pk\/essl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kics.edu.pk\/essl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kics.edu.pk\/essl\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kics.edu.pk\/essl\/wp-json\/wp\/v2\/comments?post=1027"}],"version-history":[{"count":4,"href":"https:\/\/kics.edu.pk\/essl\/wp-json\/wp\/v2\/posts\/1027\/revisions"}],"predecessor-version":[{"id":1109,"href":"https:\/\/kics.edu.pk\/essl\/wp-json\/wp\/v2\/posts\/1027\/revisions\/1109"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kics.edu.pk\/essl\/wp-json\/wp\/v2\/media\/1108"}],"wp:attachment":[{"href":"https:\/\/kics.edu.pk\/essl\/wp-json\/wp\/v2\/media?parent=1027"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kics.edu.pk\/essl\/wp-json\/wp\/v2\/categories?post=1027"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kics.edu.pk\/essl\/wp-json\/wp\/v2\/tags?post=1027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}