Unified CLI tool for native Odoo development environment management
Project description
odoodev — Unified Odoo Development CLI
Deutsche Dokumentation
Projektübersicht
odoodev ist ein einheitliches CLI-Tool für die Verwaltung nativer Odoo-Entwicklungsumgebungen über mehrere Versionen hinweg (v16–v19). Es ersetzt eine Vielzahl manueller Skripte, Shell-Funktionen und Konfigurationsdateien durch ein konsistentes Werkzeug mit vollständigem Lifecycle-Management.
Hauptfunktionen:
- Multi-Version Support (v16, v17, v18, v19)
- Automatische Versionserkennung aus dem aktuellen Verzeichnis
- Interaktiver Setup-Wizard für die Ersteinrichtung
- Native Entwicklung mit UV Virtual Environments
- Repository-Management mit frei benennbaren Sections in repos.yaml
- Datenbank-Backup & -Wiederherstellung (ZIP, 7z, tar, tar.zst, SQL)
- DSGVO-Anonymisierung beim Restore (standardmäßig aktiv, Faker-basiert, inkl. HR-/Mitarbeiterdaten,
--no-anonymizezum Abschalten);res_usersbleibt per Default testbar — optional via--anonymize-users - Native Odoo-Neutralisierung beim Restore (
odoo-bin neutralize, standardmäßig aktiv) + ergänzende Bank-Sync-Bereinigung + eigenständiger Befehldb neutralize - Docker-Service-Verwaltung (PostgreSQL, Mailpit)
- Shell-Integration mit Tab-Completions (Fish, Bash, Zsh)
- YAML-Playbook-Automation für wiederkehrende Workflows
- Odoo-Konfigurationsgenerierung mit Template-System
- TUI-Modus mit Log-Viewer, Level-Filter, aufklappendem Schnellmenü (
m) für schmale Monitore, Live-Erkennung der Datenbank aus den Logs und CSV-Modulexport im Releasemanager-Format - Port-Konflikterkennung mit automatischer Prozessbereinigung
- Interaktiver Addon-Selektor für repos/pull (
--select) - Sprachladen und Übersetzungs-Overwrite (
--load-language,--i18n-overwrite) - Session-Bereinigung vor Odoo-Start (
--clean-sessions) - Debian 13 / Python 3.12+ Kompatibilität (setuptools, Build-Dependencies)
- Versionsübergreifender Migrationsmodus (geteilte PostgreSQL-Container und Filestore)
odoodev doctor— alle Umgebungs-Checks auf einen Blick inkl. PyPI-Update-Hinweis- Datenbank kopieren/umbenennen (
db copy,db rename) inkl. Filestore - Maschinenlesbare Ausgabe (
--json) fürdb list,config versions,venv check - Playbook-Variablen (
vars:-Block,{{ vars.x }},{{ env.X }},{{ date }},--var-Overrides) und Playbook-Discovery (run --list)
Schnellstart
# 1. Installieren
uv tool install odoodev-equitania
# 2. Setup-Wizard (einmalig)
odoodev setup
# 3. Umgebung initialisieren
odoodev init 18
# 4. Shell-Integration installieren (Tab-Completions!)
odoodev shell-setup
# 5. Odoo starten
odoodev start 18 --dev
Dokumentation:
- Wiki: Odoo-Entwicklungs-Workflow — End-to-End-Anleitung mit Hello-World-Modul (zweisprachig DE/EN)
- Setup & Ersteinrichtung — Setup-Wizard, Init, .env-Verwaltung
- Server Start & Stop — Start-Modi, Voraussetzungen, TUI
- Repositories — Klonen, Pull, Addon-Selektor
- Datenbank — Backup, Restore, List, Drop
- Virtual Environment — UV-basierte venv-Verwaltung
- Docker — PostgreSQL & Mailpit Services
- Konfiguration — Versionen, Plattforminfo,
config set/edit- Doctor — Umgebungs-Checks und PyPI-Update-Hinweis
- Playbooks — YAML-Automation und Inline-Steps
- Migration — Versionsuebergreifende DB-Migration
- Shell-Integration — Completions, Wrapper, Aliase
Befehle im Überblick
| Befehl | Beschreibung | Details |
|---|---|---|
odoodev setup |
Interaktiver Setup-Wizard | setup.md |
odoodev init [VERSION] |
Neue Entwicklungsumgebung initialisieren | setup.md |
odoodev start [VERSION] |
Odoo-Server starten (--runtime docker|apple) |
start.md |
odoodev stop [VERSION] |
Odoo-Server und Docker stoppen | start.md |
odoodev repos [VERSION] |
Repositories klonen/aktualisieren | repos.md |
odoodev pull [VERSION] |
Schneller git pull aller Repos |
repos.md |
odoodev db [SUB] [VERSION] |
Datenbankoperationen (backup, restore, neutralize, list, drop) | db.md |
odoodev env [SUB] [VERSION] |
.env-Dateiverwaltung (setup, check, show, dir) | setup.md |
odoodev venv [SUB] [VERSION] |
Virtual Environment verwalten | venv.md |
odoodev docker [SUB] [VERSION] |
Lokale Container-Services steuern (Docker / Apple Container, --runtime) |
docker.md |
odoodev bench [VERSION] |
PostgreSQL-Benchmark Docker vs Apple Container | apple-container.md |
odoodev doctor [VERSION] |
Umgebungs-Checks + PyPI-Update-Hinweis | doctor.md |
odoodev config [SUB] |
Konfiguration und Versionen (inkl. set/edit) |
config.md |
odoodev run [PLAYBOOK] |
YAML-Playbook oder Inline-Steps (--list, --var) |
run.md |
odoodev migrate [SUB] |
Migrationsmodus für versionsübergreifende DB-Migration | migrate.md |
odoodev shell-setup |
Shell-Completions und Wrapper installieren | shell.md |
Unterstützte Versionen
| Version | Python | PostgreSQL | DB Port | Odoo Port | Gevent | Mailpit |
|---|---|---|---|---|---|---|
| v16 | 3.12 | 16.11 | 16432 | 16069 | 16072 | 16025 |
| v17 | 3.12 | 16.11 | 17432 | 17069 | 17072 | 17025 |
| v18 | 3.13 | 16.11 | 18432 | 18069 | 18072 | 18025 |
| v19 | 3.13 | 17.4 | 19432 | 19069 | 19072 | 19025 |
Port-Schema: {version}{service} — z.B. v18: DB=18432, Odoo=18069
Verzeichnisstruktur
~/.config/odoodev/
├── config.yaml # [GENERATED] odoodev setup
└── versions-override.yaml # [MANUELL] Optionale Overrides
~/gitbase/vXX/ # (oder eigener base_dir)
├── vXX-server/ # [REPOS] Odoo-Server
│ └── odoo-bin
├── vXX-dev/
│ ├── devXX_native/ # [INIT] Arbeitsverzeichnis
│ │ ├── .env # [GENERATED]
│ │ ├── docker-compose.yml # [GENERATED]
│ │ ├── .venv/ # [GENERATED]
│ │ └── requirements.txt # [MANUELL]
│ ├── conf/odooXX_template.conf # [MANUELL]
│ └── scripts/repos.yaml # [MANUELL]
├── myconfs/odoo_YYMMDD.conf # [GENERATED]
└── vXX-addons/, vXX-oca/, ... # [REPOS]
Legende: [GENERATED] = von odoodev erzeugt | [REPOS] = per git clone | [MANUELL] = vom Benutzer
Datenfluss
odoodev setup → config.yaml (Basispfad, DB-Credentials)
↓
odoodev init → Verzeichnisse + .env + docker-compose.yml + .venv + repos
↓
odoodev repos → repos.yaml → git clone → odoo_YYMMDD.conf
↓
odoodev start → .env laden → Voraussetzungen prüfen → odoo-bin starten
Architektur
odoodev/
├── cli.py # CLI-Einstiegspunkt (Click)
├── output.py # Rich-Konsolenausgabe
├── commands/ # Click-Commands (init, start, stop, repos, db, ...)
├── core/ # Kernmodule (version_registry, database, git_ops, ...)
├── tui/ # TUI-Modus (Textual — Log-Viewer, Status, Schnellmenü, Modul-Export)
├── templates/ # Jinja2-Templates (docker-compose, .env, odoo.conf)
└── data/
├── versions.yaml # Versionsregistry
└── examples/ # Beispiel-Playbooks und Requirements-Templates
Entwicklung
uv venv && source .venv/bin/activate.fish
uv pip install -e ".[dev]"
pytest # Tests (907)
ruff check . && ruff format --check . # Linting
mypy odoodev # Type-Check
uv build # Paket bauen
Änderungsprotokoll
Die vollständige Versionshistorie steht in den Release Notes.
Version 0.42.2:
- Behoben:
odoodev startstartet Odoo nicht mehr, bevor PostgreSQL wirklich bereit ist. Bei Apple Container nimmt der Port-Forwarder der Micro-VM TCP-Verbindungen an, bevor PostgreSQL in der VM antwortet — Odoo hing dadurch 10–30 s in stillen Verbindungs-Retries, bevor z. B. ein-u alllosläuft. Die Bereitschaft wird jetzt auf PostgreSQL-Protokollebene geprüft (Host-pg_isreadywenn vorhanden, sonst abhängigkeitsfreie Socket-Probe) und bis zu 60 s mit Spinner abgewartet;odoodev docker upwartet ebenso. Auch langsame Docker-Container-Starts sind damit abgedeckt.
Version 0.42.1:
- Behoben: Im Migrationsmodus übersteuerte die
.envder Zielversion (mit ihrem regulärenDB_PORT) den geteilten Quell-Port —db backup 18,start 18& Co. versuchten den falschen Port, nur die Quellversion funktionierte. Neuer zentraler Resolver mit Vorrang Migration-Ziel-Port >.env> Registry, angewandt an allen acht Auflösungsstellen (inkl.PGPORTfür odoo-bin und der odoo.conf-Generierung).
Version 0.42.0:
- Neu: Alle
db-Befehle funktionieren jetzt auch ohne installierte PostgreSQL-Client-Tools auf dem Host — fehlenpsql/pg_dump, laufen die Kommandos automatisch perdocker execim Container, der den Ziel-Port veröffentlicht (typischer Fall: Migrationsserver). Das umgeht auch Versionskonflikte des Host-Clients (z.B. Debian 12: Client 15 gegen Postgres-16-Container). Erzwingbar perODOODEV_PG_EXEC=host|container. - Neu: Saubere, handlungsorientierte Fehlermeldungen statt Tracebacks — sind weder Client-Tools noch ein laufender Container vorhanden, nennt der Befehl beide Lösungswege (Tools installieren oder
odoodev docker up). - Geändert:
db restoreund die Anonymisierung pipen SQL-Dumps jetzt per stdin stattpsql -f(nötig für den Container-Fallback, im Host-Modus verhaltensgleich).
Version 0.41.0:
- Behoben: Der markierte Text im TUI-Log wird jetzt tatsächlich hervorgehoben. Zwei Ursachen: (1)
render_linetrug die Selektionsfarbe perapply_styleauf, das aber als(Selektionsstil + Segmentstil)kombiniert — der eigene Log-Hintergrund jedes Segments übermalte die Markierung, sie blieb unsichtbar. Der Bereich wird jetzt umgekehrt zusammengesetzt (Segmentstil + Selektionsstil), sodass die Selektionsfarbe gewinnt. (2) Textualsselection_updatedlöste keinen vollständigen Repaint aus (RichLogs eigener_line_cacheblieb ungeleert), wodurch alte Markierungen „einbrannten" — jetzt wie in TextualsLog-Widget behoben. - Geändert: Markiermodus deutlich sichtbar — dauerhafter Hinweis
y = mark modeüber dem Footer, im Modus◉ MARK · drag · y copies · Esc cancels · auto-scroll paused, Statusleisten-Badge● MARKund FilterBar-Scroll-Indikator zeigen den Modus. Die Kopier-Meldung unterscheidet jetzt Teilzeile vs. mehrere Zeilen.
Version 0.40.0:
- Behoben: Das Markieren mit der Maus im TUI-Log funktioniert endlich — und man sieht, was man markiert. Wahre Ursache hinter vier Fehlversuchen (0.36–0.39): Textuals
RichLog.render_linebettet (anders als dasLog-Widget) nie dasoffset-Meta ein, das der Compositor braucht, um eine Mausposition auf eine Textstelle abzubilden — dadurch blieb die Selektion intern immer leer (kein Highlight; das Terminal griff ein und kopierte „alles Sichtbare"). Jetzt werden die Offsets gesetzt, Selektion, Hervorhebung und Kopieren funktionieren. - Geändert: Bewusster Markierungsmodus, umgeschaltet mit
y(wie tmux-Copy-Mode).ystartet den Modus: Auto-Scroll friert ein, das Log bekommt einen farbigen Rahmen und die Statusleiste zeigt● MARK. Mit der Maus ziehen → Bereich sichtbar hervorgehoben.yerneut → kopiert genau diesen Bereich und verlässt den Modus;Escbricht ohne Kopieren ab. Außerhalb des Modus gehört die Maus wie gewohnt dem Terminal, es wird nie automatisch kopiert.
Version 0.39.0:
- Behoben: Die mit der Maus markierte Auswahl im TUI wird jetzt sichtbar hervorgehoben (vorher unsichtbar — Textuals
RichLogrendert das Selection-Styling von Haus aus nicht). - Behoben: Mit der Maus gezogener Text wird beim Loslassen automatisch in die Zwischenablage kopiert — wie in Claude Workbench, ganz ohne Taste. Das automatische Kopieren wurde 0.37.0 zurückgenommen, weil im live mitlaufenden Log jedes Loslassen versehentlich alle sichtbaren Zeilen erfasste; Ursache war ein driftendes Koordinaten-Mapping durch das Auto-Scrollen während des Ziehens. Das Log friert Auto-Scroll jetzt für die Dauer des Markierens ein, wodurch die Zuordnung stabil bleibt.
yfunktioniert weiterhin als manueller Fallback.
Version 0.38.0:
- Geändert: Den mit der Maus markierten Bereich kopiert im TUI jetzt die Taste
y(yank) stattCtrl+C.Ctrl+C/Cmd+Cwerden von praktisch jedem Terminal (Terminus, iTerm, Terminal.app) selbst abgefangen und erreichen die TUI nicht — daher eine eigene, terminal-unabhängige Taste: Bereich markieren (bleibt hervorgehoben), dannydrücken → kopiert genau die Markierung.c/e/wunverändert.
Version 0.37.0:
- Geändert: TUI-Maus-Kopieren überarbeitet. Das automatische Kopieren beim Loslassen der Maustaste (0.36.0) erwies sich im live mitlaufenden Log als unbrauchbar (kopierte ungewollt alle sichtbaren Zeilen). Jetzt markiert die Maus nur einen Bereich (sichtbar hervorgehoben), und kopiert wird ausschließlich auf bewusstes
Ctrl+C/Cmd+C— und zwar genau der markierte Bereich. (Unter macOS fängt das TerminalCmd+Coft selbst ab;Ctrl+Cist der zuverlässige Weg.) Die Tastenc/e/w(sichtbare/Error/Warn-Zeilen) sind unverändert.
Version 0.36.0:
- Neu: Im TUI-Modus mausbasiertes Kopieren eingeführt (in 0.37.0 überarbeitet — siehe oben).
Version 0.32.0:
- Neu:
odoodev db restoreprüft vor dem Entpacken den freien Speicherplatz — die entpackte Größe wird geschätzt (ZIP exakt, komprimierte Formate konservativGröße × 3) und gegen den freien Platz auf Extraktions- und Filestore-Dateisystem geprüft. Bei Knappheit: Warnung mit konkreten Zahlen + Rückfrage „Continue anyway?" (Default Nein) statt Abbruch mitten im Kopieren. Abschaltbar mit--no-check-space. - Neu:
odoodev db restorekann das Original-Backup am Ende optional löschen — nach erfolgreichem Restore Rückfrage „Delete original backup file?" (Default Nein, nie automatisch). Neue Flags--delete-backup(löschen ohne Frage) und--keep-backup(nie fragen/löschen) machen das skriptfähig. - Geändert: Schlankeres Restore-Datenhandling — der Filestore wird jetzt verschoben statt kopiert. Bisher lag der Filestore dreifach auf der Platte (Backup + entpacktes Temp + kopiertes Ziel). Der Zieltransfer nutzt nun
shutil.move(Rename auf demselben Dateisystem = instant, sonst Fallback copy+delete) und vermeidet die doppelte Datenhaltung.--keep-tempkopiert weiterhin (Temp bleibt zum Debuggen erhalten). Der Playbook-Restore wurde angeglichen.
Version 0.31.4:
- Neu:
odoodev db backupunterstützt jetzt.tar.zst-Stream-Backups (--type tar.zst) — erzeugt ein Zstandard-komprimiertes tar (dump.sql+filestore/) passend zum Backup-Server (container2backupv4.7.0+) und zum Restore aus 0.31.2. Symmetrisch implementiert: ein Python-tarfile-Stream wird in diezstd-CLI gepipet (keinzstandard-Package nötig). Ideal für große Datenbanken mit umfangreichem Filestore. Die neue Option--level/-lsetzt das zstd-Kompressionslevel (1=schnell .. 19/22=kleinste, Standard 5). Die interaktive Auswahl listetTAR.ZSTnebenSQLundZIP; fehlt diezstd-CLI, bricht der Befehl frühzeitig mit Installationshinweis ab.
Version 0.31.3:
- Behoben: Der interaktive
Backup file:-Prompt vonodoodev db restorewies gültige Pfade mit umschließendem Whitespace ab — ein eingefügtes oder per Autovervollständigung erzeugtes Leerzeichen/Newline führte zu „File not found", obwohl die Datei existierte. Pfad-Eingaben werden jetzt vor der~-Expansion gestrippt.
Version 0.31.2:
- Neu:
odoodev db restoreunterstützt jetzt.tar.zst-Stream-Backups — der Backup-Server (container2backupv4.7.0+) erzeugt für große Datenbanken ein Zstandard-komprimiertes tar (dump.sql+filestore/) statt eines gestaffelten ZIP/7z. Der Restore entpackt dieses direkt perzstd | tarfile-Stream (kein Zwischen-.tarauf der Platte), mit Path-Traversal-Schutz;odoodev doctorprüft passend auf einezstd-CLI. - Behoben:
.tar.gz-Backups wurden fälschlich als reiner SQL-Dump behandelt (der Filestore ging verloren) — sie werden jetzt korrekt als tar entpackt.
Version 0.31.1:
- Behoben:
.7z-Backups ließen sich unter Debian/WSL2 nicht wiederherstellen — die Extraktion erkennt jetzt zusätzlich das Binary7za(von Debiansp7zip), und die Fehlermeldung nennt die korrekten Pakete je Plattform. - Behoben: Der wkhtmltopdf-Hinweis war unter Linux unbrauchbar — er verweist jetzt auf das patched-Qt-
.debvongithub.com/wkhtmltopdf/packaging; die Erkennung durchsucht zusätzlich/opt/wkhtmltox/bin. - Neu:
odoodev doctorprüft jetzt zusätzlich auf eine 7-Zip-CLI, sodass bei einer Neueinrichtung frühzeitig gewarnt wird, falls.7z-Backups nicht wiederherstellbar wären.
Version 0.31.0:
- Neu: Datenbank-Backup direkt aus dem TUI (
b) — Dialog für DB + Typ (ZIP/SQL), läuft im Hintergrund-Thread, Datei landet in~/Downloads/. - Neu: DB-Wechsel zur Laufzeit aus dem TUI (
d) — Auswahl aus den verfügbaren Datenbanken, Server startet damit neu. - Neu: Modul-Katalogpflege aus dem TUI (
a= Apps-Liste aktualisieren,k= nicht-installierte Module entfernen) sowie zwei Checkboxen im CSV-Export-Dialog (x), damit die CSV nur tatsächlich installierte Module enthält. - Geändert:
odoodev db backuplegt das Backup jetzt standardmäßig in~/Downloads/ab (statt im Arbeitsverzeichnis);--outputüberschreibt das weiterhin.
Version 0.30.1:
- Behoben: Das Schnellmenü (
m) schnitt seinen letzten Eintrag (Load language) unten ab — die Höhe ist jetzt adaptiv (95%), alle Einträge sind sichtbar (und die Liste scrollt auf sehr kleinen Terminals).
Version 0.30.0:
- Behoben: Die Footer-Tastenleiste (
q | m | ?) wurde von der Versionsanzeige verdeckt — die Version liegt jetzt auf einer eigenen Zeile direkt über dem Footer, beide sind sichtbar. - Geändert: Das Schnellmenü (
m) zeigt jetzt zu jeder Aktion die zugehörige Taste an (z. B.0 Alle Level,s Sichtbares Log speichern).
Version 0.11.0:
- Semver-konformer Minor-Release des TUI-Funktionsumfangs (Schnellmenü
m, Live-DB-Erkennung, editierbares Export-DB-Feld, Versionsanzeige) inkl. der Odoo-19-Fixes. Keine funktionalen Änderungen gegenüber 0.10.1.
Version 0.10.1:
- Behoben: Der TUI-Modulexport stürzte auf Odoo 19 ab (
installablewurde ausir.module.moduleentfernt) — der Filter nutzt jetzt das versionsübergreifendestate-Feld. - Behoben: Die
/xmlrpc/2-Deprecation-Warnung auf Odoo 19 wird nun unterdrückt (der richtigexmlrpc-Controller-Logger wird stummgeschaltet). - Neu: Die odoodev-Versionsnummer wird unten rechts im TUI angezeigt.
Version 0.10.0:
- Behoben: Der TUI-Modus nutzt jetzt die tatsächliche Datenbank (
-d/--databasebzw.-- -d <db>) statt eines geratenen Fallbacks; der bediente DB-Name wird zusätzlich live aus den Odoo-Logs erkannt und in der Statusleiste angezeigt. - Neu: Aufklappendes Schnellmenü (
m) für schmale Monitore — die Fußzeile zeigt nur nochq Quit | m Menu | ? Help, alle direkten Tasten bleiben aktiv. - Neu: Editierbares Datenbankfeld im CSV-Export-Dialog, vorbelegt mit der erkannten DB.
Lizenz
AGPL-3.0-or-later — Equitania Software GmbH
Kontakt
- Website: https://www.equitania.de
- E-Mail: info@equitania.de
English Documentation
Project Overview
odoodev is a unified CLI tool for native Odoo development environment management across versions (v16–v19). It replaces a variety of manual scripts, shell functions, and configuration files with a consistent tool providing complete lifecycle management.
Key Features:
- Multi-version support (v16, v17, v18, v19)
- Automatic version detection from current directory
- Interactive setup wizard for first-time configuration
- Native development with UV virtual environments
- Repository management with freely nameable sections in repos.yaml
- Database backup & restoration (ZIP, 7z, tar, tar.zst, SQL)
- GDPR anonymization on restore (on by default, Faker-based, incl. HR/employee data,
--no-anonymizeto disable);res_usersstays testable by default — opt in via--anonymize-users - Native Odoo neutralization on restore (
odoo-bin neutralize, on by default) + supplementary bank-sync cleanup + standalonedb neutralizecommand - Docker service management (PostgreSQL, Mailpit)
- Shell integration with tab completions (Fish, Bash, Zsh)
- YAML playbook automation for recurring workflows
- Odoo configuration generation with template system
- TUI mode with log viewer, level filtering, an upward quick menu (
m) for narrow terminals, live database detection from the logs, and module CSV export in Releasemanager format - Port conflict detection with automatic process cleanup
- Interactive addon selector for repos/pull (
--select) - Language loading and translation overwrite (
--load-language,--i18n-overwrite) - Session cleanup before Odoo start (
--clean-sessions) - Debian 13 / Python 3.12+ compatibility (setuptools, build dependencies)
- Cross-version migration mode (shared PostgreSQL container and filestore)
odoodev doctor— all environment checks at a glance incl. PyPI update notice- Database copy/rename (
db copy,db rename) incl. filestore - Machine-readable output (
--json) fordb list,config versions,venv check - Playbook variables (
vars:block,{{ vars.x }},{{ env.X }},{{ date }},--varoverrides) and playbook discovery (run --list)
Quick Start
# 1. Install
uv tool install odoodev-equitania
# 2. Setup wizard (one-time)
odoodev setup
# 3. Initialize environment
odoodev init 18
# 4. Install shell integration (tab completions!)
odoodev shell-setup
# 5. Start Odoo
odoodev start 18 --dev
Documentation:
- Wiki: Odoo Development Workflow — End-to-end guide with Hello-World module (bilingual DE/EN)
- Setup & First-Time Configuration — Setup wizard, init, .env management
- Server Start & Stop — Start modes, prerequisites, TUI
- Repositories — Clone, pull, addon selector
- Database — Backup, restore, list, drop
- Virtual Environment — UV-based venv management
- Docker — PostgreSQL & Mailpit services
- Configuration — Versions, platform info,
config set/edit- Doctor — Environment checks and PyPI update notice
- Playbooks — YAML automation and inline steps
- Migration — Cross-version DB migration
- Shell Integration — Completions, wrappers, aliases
Command Reference
| Command | Description | Details |
|---|---|---|
odoodev setup |
Interactive setup wizard | setup.md |
odoodev init [VERSION] |
Initialize new development environment | setup.md |
odoodev start [VERSION] |
Start Odoo server (--runtime docker|apple) |
start.md |
odoodev stop [VERSION] |
Stop Odoo server and Docker | start.md |
odoodev repos [VERSION] |
Clone/update repositories | repos.md |
odoodev pull [VERSION] |
Quick git pull across all repos |
repos.md |
odoodev db [SUB] [VERSION] |
Database operations (backup, restore, neutralize, list, drop) | db.md |
odoodev env [SUB] [VERSION] |
.env file management (setup, check, show, dir) | setup.md |
odoodev venv [SUB] [VERSION] |
Virtual environment management | venv.md |
odoodev docker [SUB] [VERSION] |
Local container service control (Docker / Apple Container, --runtime) |
docker.md |
odoodev bench [VERSION] |
PostgreSQL benchmark Docker vs Apple Container | apple-container.md |
odoodev doctor [VERSION] |
Environment checks + PyPI update notice | doctor.md |
odoodev config [SUB] |
Configuration and versions (incl. set/edit) |
config.md |
odoodev run [PLAYBOOK] |
YAML playbook or inline steps (--list, --var) |
run.md |
odoodev migrate [SUB] |
Migration mode for cross-version DB migration | migrate.md |
odoodev shell-setup |
Install shell completions and wrappers | shell.md |
Supported Versions
| Version | Python | PostgreSQL | DB Port | Odoo Port | Gevent | Mailpit |
|---|---|---|---|---|---|---|
| v16 | 3.12 | 16.11 | 16432 | 16069 | 16072 | 16025 |
| v17 | 3.12 | 16.11 | 17432 | 17069 | 17072 | 17025 |
| v18 | 3.13 | 16.11 | 18432 | 18069 | 18072 | 18025 |
| v19 | 3.13 | 17.4 | 19432 | 19069 | 19072 | 19025 |
Port schema: {version}{service} — e.g. v18: DB=18432, Odoo=18069
Directory Structure
~/.config/odoodev/
├── config.yaml # [GENERATED] odoodev setup
└── versions-override.yaml # [MANUAL] Optional overrides
~/gitbase/vXX/ # (or custom base_dir)
├── vXX-server/ # [REPOS] Odoo server
│ └── odoo-bin
├── vXX-dev/
│ ├── devXX_native/ # [INIT] Working directory
│ │ ├── .env # [GENERATED]
│ │ ├── docker-compose.yml # [GENERATED]
│ │ ├── .venv/ # [GENERATED]
│ │ └── requirements.txt # [MANUAL]
│ ├── conf/odooXX_template.conf # [MANUAL]
│ └── scripts/repos.yaml # [MANUAL]
├── myconfs/odoo_YYMMDD.conf # [GENERATED]
└── vXX-addons/, vXX-oca/, ... # [REPOS]
Legend: [GENERATED] = created by odoodev | [REPOS] = via git clone | [MANUAL] = user-provided
Data Flow
odoodev setup → config.yaml (base path, DB credentials)
↓
odoodev init → directories + .env + docker-compose.yml + .venv + repos
↓
odoodev repos → repos.yaml → git clone → odoo_YYMMDD.conf
↓
odoodev start → load .env → check prerequisites → start odoo-bin
Architecture
odoodev/
├── cli.py # CLI entry point (Click)
├── output.py # Rich console output
├── commands/ # Click commands (init, start, stop, repos, db, ...)
├── core/ # Core modules (version_registry, database, git_ops, ...)
├── tui/ # TUI mode (Textual — log viewer, status, quick menu, module export)
├── templates/ # Jinja2 templates (docker-compose, .env, odoo.conf)
└── data/
├── versions.yaml # Version registry
└── examples/ # Example playbooks and requirements templates
Development
uv venv && source .venv/bin/activate.fish
uv pip install -e ".[dev]"
pytest # Tests (907)
ruff check . && ruff format --check . # Linting
mypy odoodev # Type checking
uv build # Build package
Changelog
The full version history is available in the Release Notes.
Version 0.42.2:
- Fixed:
odoodev startno longer launches Odoo before PostgreSQL is actually ready. On Apple Container the micro-VM's port forwarder accepts TCP before PostgreSQL inside answers — Odoo sat 10-30s in silent connection retries before e.g. a-u allbegan. Readiness is now verified at the PostgreSQL protocol level (hostpg_isreadywhen available, otherwise a dependency-free socket probe) with up to 60s of spinner-backed polling;odoodev docker upwaits the same way. Slow Docker container boots are covered too.
Version 0.42.1:
- Fixed: In migration mode the target version's
.env(with its regularDB_PORT) overrode the shared source port —db backup 18,start 18etc. tried the wrong port; only the source version worked. New central resolver with precedence migration-target port >.env> registry, applied at all eight resolution sites (incl.PGPORTfor odoo-bin and odoo.conf generation).
Version 0.42.0:
- Added: All
dbcommands now work without PostgreSQL client tools installed on the host — whenpsql/pg_dumpare missing, commands run automatically viadocker execinside the container publishing the target port (typical case: migration servers). This also sidesteps host client version mismatches (e.g. Debian 12: client 15 against a Postgres 16 container). Force a mode withODOODEV_PG_EXEC=host|container. - Added: Clean, actionable error messages instead of tracebacks — if neither client tools nor a running container are available, the command names both remedies (install the tools or
odoodev docker up). - Changed:
db restoreand the anonymization pipe SQL dumps via stdin instead ofpsql -f(required for the container fallback, behavior-identical in host mode).
Version 0.41.0:
- Fixed: The marked text in the TUI log is now actually highlighted. Two causes: (1)
render_lineapplied the selection colour viaapply_style, which combines as(selection + segment)— each segment's own log background overrode the selection, leaving it invisible. The span is now rebuilt as(segment + selection)so the selection colour wins. (2) Textual'sselection_updateddidn't force a full repaint (RichLog's own_line_cachewas never cleared), so old selections lingered — now fixed the same way Textual'sLogwidget does. - Changed: Mark mode is now clearly visible — persistent
y = mark modehint above the footer,◉ MARK · drag · y copies · Esc cancels · auto-scroll pausedwhile marking, a● MARKstatus-bar badge, and the FilterBar auto-scroll indicator. The copy toast now distinguishes a partial-line selection from multiple lines.
Version 0.40.0:
- Fixed: Mouse selection in the TUI log finally works — and you can see what you mark. The real root cause behind four failed attempts (0.36–0.39): unlike Textual's
Logwidget,RichLog.render_linenever embeds theoffsetmeta the compositor needs to map a mouse position to a content offset, so the selection stayed empty forever (no highlight; the terminal took over and grabbed "all visible lines"). Offsets are now embedded, so selection, highlight and copy all work. - Changed: Deliberate selection ("mark") mode toggled with
y(tmux-copy-mode style).yenters the mode: auto-scroll freezes, the log gets an accent border and the status bar shows● MARK. Drag with the mouse → the region is visibly highlighted. Pressyagain to copy exactly that region and leave the mode;Esccancels without copying. Outside the mode the mouse behaves normally and nothing is ever auto-copied.
Version 0.32.0:
- Added:
odoodev db restorechecks free disk space before extracting — the uncompressed size is estimated (exact for ZIP, conservativesize × 3for compressed formats) and compared against the free space on the extraction and filestore filesystems. If space is tight: a warning with concrete numbers plus aContinue anyway?prompt (default no) instead of failing mid-copy. Disable with--no-check-space. - Added:
odoodev db restorecan optionally delete the original backup afterwards — after a successful restore it asksDelete original backup file?(default no, never automatic). New flags--delete-backup(delete without prompting) and--keep-backup(never ask/delete) make it scriptable. - Changed: Leaner restore data handling — the filestore is now moved instead of copied. Previously it lived on disk three times (backup + extracted temp + copied destination). The destination transfer now uses
shutil.move(instant rename on the same filesystem, copy+delete fallback across filesystems), eliminating the double storage.--keep-tempstill copies (temp kept for debugging). The playbook restore path was aligned.
Version 0.31.4:
- Added:
odoodev db backupnow supports.tar.zststream backups (--type tar.zst) — produces a Zstandard-compressed tar (dump.sql+filestore/) matching the backup server (container2backupv4.7.0+) and the restore added in 0.31.2. Implemented symmetrically: a Pythontarfilestream is piped into thezstdCLI (nozstandardpackage needed). Well suited to large databases with a big filestore. A new--level/-loption sets the zstd compression level (1=fastest .. 19/22=smallest, default 5). The interactive picker listsTAR.ZSTalongsideSQLandZIP; the command fails early with an install hint when thezstdCLI is missing.
Version 0.31.3:
- Fixed:
odoodev db restore's interactiveBackup file:prompt rejected valid paths with surrounding whitespace — a pasted or autocompleted trailing space/newline caused "File not found" even though the file existed. Path inputs are now stripped before~expansion.
Version 0.31.2:
- Added:
odoodev db restorenow supports.tar.zststream backups — the backup server (container2backupv4.7.0+) produces a Zstandard-compressed tar (dump.sql+filestore/) for large databases instead of a staged ZIP/7z. Restore decompresses these directly via azstd | tarfilestream (no intermediate.taron disk), with path-traversal protection;odoodev doctorgained a matchingzstdcheck. - Fixed:
.tar.gzbackups were mistreated as a plain SQL dump (the filestore was lost) — they now extract correctly as tar.
Version 0.31.1:
- Fixed:
.7zbackups could not be restored on Debian/WSL2 — extraction now also detects the7zabinary (shipped by Debian'sp7zip), and the error message names the correct packages per platform. - Fixed: The wkhtmltopdf hint was unusable on Linux — it now points to the patched-Qt
.debfromgithub.com/wkhtmltopdf/packaging; detection also searches/opt/wkhtmltox/bin. - Added:
odoodev doctornow also checks for a 7-Zip CLI, warning early during a fresh setup when.7zbackups would not be restorable.
Version 0.31.0:
- Added: Database backup straight from the TUI (
b) — dialog for DB + type (ZIP/SQL), runs in a worker thread, the file lands in~/Downloads/. - Added: Runtime database switch from the TUI (
d) — pick from the available databases, the server restarts bound to the choice. - Added: Module-catalog maintenance from the TUI (
a= update apps list,k= remove non-installed modules) plus two checkboxes in the CSV export dialog (x) so the CSV reflects only truly-installed modules. - Changed:
odoodev db backupnow defaults to~/Downloads/(instead of the working directory);--outputstill overrides it.
Version 0.30.1:
- Fixed: The quick menu (
m) clipped its last entry (Load language) — the height is now adaptive (95%), so all entries are visible (and the list scrolls on very small terminals).
Version 0.30.0:
- Fixed: The footer keybinding bar (
q | m | ?) was hidden by the version label — the version now sits on its own row directly above the footer, both fully visible. - Changed: The quick menu (
m) now shows the direct shortcut key for each action (e.g.0 All levels,s Save visible log).
Version 0.11.0:
- Semver-correct minor release of the TUI feature set (quick menu
m, live DB detection, editable export DB field, version display) including the Odoo 19 fixes. No functional changes versus 0.10.1.
Version 0.10.1:
- Fixed: The TUI module export crashed on Odoo 19 (
installablewas removed fromir.module.module) — the filter now uses the cross-versionstatefield. - Fixed: The
/xmlrpc/2deprecation warning on Odoo 19 is now silenced (the correctxmlrpccontroller logger is muted). - Added: The odoodev version number is shown in the bottom-right of the TUI.
Version 0.10.0:
- Fixed: The TUI now uses the actual database (
-d/--databaseor-- -d <db>) instead of a guessed fallback; the served database is additionally detected live from the Odoo logs and shown in the status bar. - Added: Upward quick menu (
m) for narrow terminals — the footer is condensed toq Quit | m Menu | ? Help, all direct keys stay active. - Added: Editable database field in the CSV export dialog, pre-filled with the detected DB.
License
AGPL-3.0-or-later — Equitania Software GmbH
Contact
- Website: https://www.equitania.de
- Email: info@equitania.de
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odoodev_equitania-0.42.2.tar.gz.
File metadata
- Download URL: odoodev_equitania-0.42.2.tar.gz
- Upload date:
- Size: 442.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55a242656ee5403f3267e34a948357ef547e7e0091c2d93f85c27b2fa8e88afb
|
|
| MD5 |
8768b3f71f97926b891ea05a9286f854
|
|
| BLAKE2b-256 |
876fbec055c16f1fb460d39584c80fe4316e104acd64015b11b21be0cf906836
|
File details
Details for the file odoodev_equitania-0.42.2-py3-none-any.whl.
File metadata
- Download URL: odoodev_equitania-0.42.2-py3-none-any.whl
- Upload date:
- Size: 198.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9322970cf6152e8304817eabb3e63c01b3f26fe4fee287abc697b752d1592db0
|
|
| MD5 |
6dfdcd344004fcc1db232f29d8234f87
|
|
| BLAKE2b-256 |
8de1fcb23d02c0554af370e005260c4e7d534e88c937dabb90412e0a9158ac85
|