<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Buddhini watagala on Medium]]></title>
        <description><![CDATA[Stories by Buddhini watagala on Medium]]></description>
        <link>https://medium.com/@buddhiniwatagala01?source=rss-372dee08133e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*x2D5cx3wRlsDFLsi93XCHw.jpeg</url>
            <title>Stories by Buddhini watagala on Medium</title>
            <link>https://medium.com/@buddhiniwatagala01?source=rss-372dee08133e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 10:48:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@buddhiniwatagala01/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Setting Up Odoo Development Environment on Windows 11: A Step-by-Step Guide]]></title>
            <link>https://medium.com/@buddhiniwatagala01/setting-up-odoo-development-environment-on-windows-11-a-step-by-step-guide-ac01725e5a5d?source=rss-372dee08133e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac01725e5a5d</guid>
            <category><![CDATA[windows-11]]></category>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[odoo]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[python-programming]]></category>
            <dc:creator><![CDATA[Buddhini watagala]]></dc:creator>
            <pubDate>Mon, 16 Sep 2024 16:20:28 GMT</pubDate>
            <atom:updated>2024-09-16T16:20:28.424Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*70DMCYfolUuqJz1vSqTsGA.png" /></figure><p>Setting up an Odoo development environment on Windows 11 can be challenging, especially when dealing with various software requirements and configurations. In this article, I’ll walk you through the process of setting up Odoo on Windows 11, addressing common issues and providing solutions.</p><h4>Prerequisites</h4><p>Before you start, ensure you have the following software installed:</p><ul><li>Python</li><li>PostgreSQL</li><li>Git</li><li>VSCode</li></ul><h4>1. Install Python and Pip</h4><ol><li><strong>Download and Install Python</strong>: Make sure to download the latest version of Python from <a href="https://www.python.org/downloads/"><strong>python.org</strong></a><strong>.</strong> During installation, check the box to “Add Python to PATH.”</li><li><strong>Install Pip</strong>: After installing Python, you’ll need Pip (Python’s package installer). Download get-pip.py from <a href="https://bootstrap.pypa.io/get-pip.py">here</a>. Open Command Prompt and navigate to the folder where you saved get-pip.py, then run:</li></ol><pre>python get-pip.py</pre><p>Verify Pip installation by running:</p><pre>pip --version</pre><p>Ensure Pip is installed in the same folder where Python and VSCode are located.</p><h4>2. Set Up a Virtual Environment</h4><ol><li><strong>Create Virtual Environment</strong>: Navigate to your Odoo installation folder (e.g., C:\odoo). Create a virtual environment by running:</li></ol><pre>python -m venv venv</pre><p>2. <strong>Activate Virtual Environment</strong>: Activate it with:</p><pre>venv\Scripts\activate</pre><p>If activated, your command prompt should show (venv) at the start of the line. You can deactivate it anytime with the command deactivate.</p><h4>3. Configure PostgreSQL</h4><ol><li><strong>Create PostgreSQL User</strong>: Open Command Prompt and run:</li></ol><pre>&quot;C:\Program Files\PostgreSQL\17\bin\createuser.exe&quot; --createdb --pwprompt --username=postgres odoo</pre><p>Replace 17 with your PostgreSQL version if different. Enter the password when prompted. This creates a new PostgreSQL user named odoo.</p><h3>4. Clone Odoo Repository</h3><ol><li><strong>Clone Repository</strong>: Navigate to where you want to clone the Odoo repository and run:</li></ol><pre>git clone --single-branch --branch 17.0 https://github.com/odoo/odoo.git</pre><p>If cloning fails, try the following solutions:</p><ul><li><strong>Disable Antivirus and Firewall</strong>: Sometimes, security software can interfere with the cloning process. Temporarily disable your antivirus and firewall, then try cloning again.</li><li>Increase the Git buffer size:</li></ul><pre>git config --global http.postBuffer 524288000</pre><ul><li>Disable compression:</li></ul><pre>git config --global core.compression 0</pre><ul><li>Use a shallow clone:</li></ul><pre>git clone --depth=1 https://github.com/odoo/odoo.git</pre><h4>5. Install Python Packages</h4><ol><li><strong>Install Dependencies</strong>: Go to the Odoo directory and activate the virtual environment:</li></ol><pre>venv\Scripts\activate</pre><p>Install the required packages:</p><pre>pip install -r requirements.txt</pre><h4>6. Configure VSCode</h4><ol><li><strong>Open Project in VSCode</strong>: Open VSCode and navigate to the folder containing the Odoo project (not the one inside the Odoo folder).</li><li><strong>Create Launch Configuration</strong>: Open the terminal in VSCode (Ctrl + `), and run:</li></ol><pre>python odoo/odoo-bin -c odoo.conf --save</pre><p>Install setuptools:</p><pre>pip install setuptools</pre><p>Run the command again:</p><pre>python odoo/odoo-bin -c odoo.conf --save</pre><p><strong>3. Edit Configuration</strong>: The odoo.conf file will be created. Add your PostgreSQL credentials:</p><p>db_password = your_password</p><p>db_user = your_username</p><p>(You can change db_user to any name you prefer, but it should match the user created in PostgreSQL. )</p><p>4. <strong>Set Up Debugging</strong>: Create a launch.json file in the .vscode folder with the following content:</p><pre>{<br>    &quot;version&quot;: &quot;0.2.0&quot;,<br>    &quot;configurations&quot;: [<br>        {<br>            &quot;name&quot;: &quot;Odoo&quot;,<br>            &quot;type&quot;: &quot;debugpy&quot;,<br>            &quot;request&quot;: &quot;launch&quot;,<br>            &quot;program&quot;: &quot;${workspaceFolder}/odoo/odoo-bin&quot;,<br>            &quot;args&quot;: [<br>                &quot;-c&quot;,<br>                &quot;${workspaceFolder}/odoo.conf&quot;<br>            ],<br>            &quot;gevent&quot;: false,<br>            &quot;console&quot;: &quot;integratedTerminal&quot;,<br>            &quot;justMyCode&quot;: false<br>        }<br>    ]<br>}</pre><p><strong>5. Add WKHTMLTOPDF Path</strong>: Edit odoo.conf to include the path to WKHTMLTOPDF:</p><pre>bin_path = C:/Program Files/wkhtmltopdf</pre><h4>7. Run and Debug Odoo</h4><ol><li><strong>Start Debugging</strong>: Go to the Run and Debug tab in VSCode and click the Start Debugging button.</li><li><strong>Access Odoo</strong>: Open a browser and navigate to <a href="http://localhost:8069.">http://localhost:8069.</a></li></ol><ul><li>Use the master password and database password to create a new database.</li><li>You can use the same password for both master and database passwords, though it’s generally recommended to keep them separate for security reasons.</li></ul><p>After creating the database, you’ll be redirected to the login page. Use your email and database password to log in. Congratulations, you have successfully set up Odoo on Windows 11!</p><h3>Conclusion</h3><p>Setting up Odoo on Windows 11 involves several steps and can be tricky, but following this guide should help you through the process. If you encounter issues, make sure to check each step and verify your configurations. Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac01725e5a5d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>