Odoo Dev Template banner
eagf-odoo eagf-odoo

Odoo Dev Template

AI community

Description

Containerized toolkit for Odoo developers: build, upgrade, and debug client projects with an optional AI coding agent powered by Claude Code

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Odoo Dev Environment Template

Dockerized development environment for Odoo. Designed for custom module development, upgrades between versions, and client maintenance.

Throughout this document, `acme` is used as a placeholder company name in examples. Replace it with the actual client name in every command.


Prerequisites

  • Docker Desktop
  • Git
  • SSH access to GitHub configured
  • Directory structure created by setup.sh (see below)

Docker Desktop resource settings (Mac)

Go to Settings → Resources and apply:

  • Memory: 10 GB
  • CPUs: 4
  • Swap: 2 GB

First-time machine setup

Run `setup.sh` once on a new machine. It creates the `~/Odoo/` directory structure, clones Odoo source repos as bare repositories, creates worktrees for the versions you choose, and installs upgrade tools.

git clone git@github.com:eagf-odoo/odoo-dev-template.git template
cd template
./setup.sh

The script is interactive and safe to re-run — it skips anything that already exists.


Setup

**1. Clone this template for your client**

git clone git@github.com:eagf-odoo/odoo-dev-template.git ~/Odoo/Customers/acme
cd ~/Odoo/Customers/acme

**2. Configure the environment**

cp .env.example .env

Edit `.env` with the values for your client. Set `ODOO_MODE` to `development` or `upgrade`, fill in the corresponding version variables, and configure paths and database name.

**Finish editing before starting.** If `make start` runs while `ODOO_DB_NAME` is still the literal placeholder from `.env.example`, Odoo will auto-create a database and filestore with that placeholder name instead of your client's. Make sure `.env` is fully filled in before step 5.

**3. Build the Docker image**

make build

Skip this step if `odoo-dev:` was already built on this machine (e.g. another client uses the same Odoo version).

**4. Restore a database** *(optional)*

make restore dump=acme_prod.zip

Accepts `.zi