Skip to Content

How to Install Odoo 16 on Windows 11 with Visual Studio Code

Windows is still one of the most widely used operating systems out there. So today we can take a look at how to run Odoo using Visual Studio Code or VS Code the easy way. Please keep in mind that there are multiple ways to run Odoo using VS Code on Windows. We are taking looking at a method which we thought was one of the easiest methods. Please follow the below steps.

  • The first step is to Download the Odoo exe file by going to the link (https://www.odoo.com/page/download) and downloading the Odoo Community Windows version. (Enterprise Version requires subscription code)

Download Odoo exe

  • Once the exe is downloaded, run the file and go through the installation process.

Run the installation process

Run the installation process

Run the installation process

  • We need to install only the Odoo Server, so select that option only

Install Odoo server

  • We can give a path where we need to install Odoo. Keep this path in mind because this will be needed at a later stage.

Select the path for installation

Installation

Installation completed

Download Visual Studio Code

  • Once VS Code is installed, open VSCode. (If Odoo is installed in C drive, you might need to run VS Code as Administrator)
  • Click Open Folder and select the folder where you installed Odoo

Open Visual Studio Code

  • After that, go to Debug Menu and click on create launch.json file and then select Python File. (Make sure to install the Python extension in vscode before hand).

Create launch.json file

  • Replace the content in the launch.json file with the below content.
    {
        // Use IntelliSense to learn about possible attributes.
        // Hover to view descriptions of existing attributes.
        // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
        "version": "0.2.0",
        "configurations": [
            {
                "name": "Odoo16",
                "type": "python",
                "request": "launch",
                "stopOnEntry": false,
                "python": "C:\\odoo16\\python\\python.exe",
                "console": "integratedTerminal",
                "program": "${workspaceRoot}\\odoo-bin",
                "args": [
                    "--config=${workspaceRoot}\\odoo.conf",
                ],
                "cwd": "${workspaceRoot}",
                "env": {},
                "envFile": "${workspaceRoot}/.env",
                "debugOptions": [
                    "RedirectOutput"
                ]
            }
        ]
    }

  • Once done, click on F5 to start debugging Odoo in VS Code.

Start debugging

Odoo database creation

So now we have Odoo running using VSCode in Windows 11. We can only download the Odoo source code from GitHub and then run Odoo instead of using the exe file, but it will take more time and effort.


If you require any Odoo-related services, support, training, development, consultation etc, feel free to contact Hynsys Technologies for excellent support.