/odoo-addons-dev

Add-ons development environment template that combines VSCode and Docker for odoo's custom modules.

Primary LanguageDockerfileMIT LicenseMIT

Odoo-addons-dev

Add-ons development environment template for Odoo's custom modules that combines VSCode and Docker.

Get Started

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.

  1. git
  2. VSCode
  3. Docker

How to use

Using this template

  1. Open the repository on github.
    https://github.com/Crazor/odoo-addons-dev

  2. Use this template Click Use this template.
    Here - https://github.com/Crazor/odoo-addons-dev/generate

git clone

  1. Open the command prompt and run below commands.
git clone <your GitHub Code URL>

VSCode, Reopen in Container

  1. Open the git cloned folder in VSCode.
  2. Install the "Remote - Containers" extension to VSCode.
  3. An icon for the extension "Remote - Containers" will be added to the bottom left corner of VSCode, click on that icon.
  4. Select "Remote-Containers: Reopen in Container" from the list.
  5. The Docker container will start and you will be able to develop remotely from VSCode.

custom_addons

  1. 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
  2. To add a new empty module, issue the following command
/opt/odoo/odoo/odoo-bin scaffold <module name>

Log in to Odoo

  1. 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.
  2. Once Odoo is running, open your browser, access Odoo, and log in (admin/admin).
    http://localhost/