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)
- Once the exe is downloaded, run the file and go through the installation process.
- We need to install only the Odoo Server, so select that option only
- 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.
- Once Odoo is successfully installed, our next step is to download and install VS Code from here(https://code.visualstudio.com/download)
- 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
- 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).
- Replace the content in the launch.json file with the below content.
- Once done, click on F5 to start debugging Odoo in VS Code.
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.