Add-ons development environment template for Odoo's custom modules that combines VSCode and Docker.
This template is add-ons development environment template for Odoo's custom modules.
With the combination of VSCode and Docker, you can easily build add-ons development environment for Odoo's custom modules and start developing right away. Of course, you can also verify the operation of standard Odoo applications.
Install the following tools.
-
Open the repository on github.
https://github.com/Crazor/odoo-addons-dev -
Use this template
ClickUse this template
.
Here - https://github.com/Crazor/odoo-addons-dev/generate
- Open the command prompt and run below commands.
git clone <your GitHub Code URL>
- Open the git cloned folder in VSCode.
- Install the "Remote - Containers" extension to VSCode.
- An icon for the extension "Remote - Containers" will be added to the bottom left corner of VSCode, click on that icon.
- Select "Remote-Containers: Reopen in Container" from the list.
- The Docker container will start and you will be able to develop remotely from VSCode.
- You can develop your own add-ons in "custom_addons" folder, see the Odoo tutorials, etc.
https://www.odoo.com/documentation/15.0/developer/tutorials/backend.html - To add a new empty module, issue the following command
/opt/odoo/odoo/odoo-bin scaffold <module name>
- Click on the "Debug and Run" icon on the left of VSCode, and with "Odoo addons" selected, click on the "Start Debugging" icon to start Odoo.
- Once Odoo is running, open your browser, access Odoo, and log in (admin/admin).
http://localhost/