This is the Mint System Odoo development environment.
This projects provides a highly opinionated way to manage and develop Odoo. It features:
- 🔍 Odoo Source: Checkout the Odoo Community and Enterprise Edition and start editing the source code.
- 🐳 Container Compose: Spin up an Odoo, Postgres, and Mailgate container and experiment locally.
- 💻 Native: Start an Odoo server directly from the source.
- 🔄 Multiple Versions: With Odoo Build, you can switch between Odoo versions starting from 13.0 up to 19.0.
- 🛠️ Develop Modules: Generate new modules, develop new Odoo features locally.
- 📥 Import and Export Database: Use Odoo scripts to copy and restore a customer database to the local environment.
- 🤝 Community Repos: The most common community repos are checked out when setting up the project.
- ✂️ Customizing Snippets: Create snippets and push them to an Odoo database.
- 🕰️ Odoo Revisions: Snapshot the Odoo source at a specific date. See revisions for details.
- 📦 Container Image: Build and publish custom Odoo images. See README for details.
- 📓 Jupyter Notebooks: Initialize and run Jupyter Lab integrated with Odoo, and execute notebooks with Papermill.
The Odoo development environment has the following requirements:
Command Completion (Optional)
bash/zsh alias task='./task' with completion.
The usage section is a set of workflows. See task help for details about the project commands.
Clone this repository.
git clone git@github.com:Mint-System/Odoo-Build.git
cd Odoo-BuildCheckout the Odoo version. Show supported versions with task list-versions.
task checkout "$VERSION"NOTE: checkout downloads >1 GB when a version is downloaded for the first time. This may take some time depending on bandwidth.
Install build and Python dependencies. Currently supported: Arch Linux, Darwin, Debian, Fedora, Ubuntu, Pop!_OS, SteamOS, Windows with Ubuntu on WSL2.
task installDecide wether you want to run Odoo in native mode (recommended) or as a container.
Start database container only.
task start dbInitialize database.
task init-dbStart Odoo from source.
task start sourceThe browser will be opened automatically.
Run container compose.
task startInitialize database with the image script.
task exec odoo init-dbOpen browser to http://localhost:8069 and login with admin:admin.