All projects

odotui

Odoo in the terminal, and an AI that plays its keys while you watch.

An Odoo development environment in the terminal —databases, backups, server, modules and tests— driven by mouse, by keyboard or by an AI, where you watch live what the AI does.

See the repository
odotui’s Databases tab: databases with their Odoo version and the details of the selected oneodotui with Claude working over MCP: the Modules tab, the AI badge in the header and Odoo's output with a failed test and its traceback in redA restore in progress: the list of backups on the left, a progress bar at 80.3% loading dump.sql and the steps on the rightDatabases tab with a backup in progress: bar at 40% compressing and the three steps, pg_dump, filestore and compressionInstance tab: Odoo running on localhost:8069 and its live log with a UserError traceback highlighted in redModules tab: acme_ventas marked as changed with its new version and Odoo's output confirming the update
Backup: pg_dump, filestore and manifest.json in a zip that Odoo's manager accepts.

Sample session with demo databases. Tap a key or a row of the roll.

The AI, on the same screen

27 MCP tools, 62 Rust tests and 36 checks against a real Odoo 17.

odotui mcp is an MCP server over stdio with 27 tools: restore, update modules, run tests, read the log with only the errors and their traceback, and understand the code without writing SQL —describe_model says which module defines each field and get_view resolves view inheritance—. Claude Code, opencode or Codex work on the same environment I do.

If the TUI is open, the server does not work on its own: it hands the task over a local socket with 0600 permissions, and the interface jumps to the tab, shows the progress and marks IA (AI) in the header. Only one long task runs at a time, mine or the AI's; the other gets «busy» instead of the two colliding.

run_tests(acme_ventas)4
odotui with Claude working over MCP: the Modules tab, the AI badge in the header and Odoo's output with a failed test and its traceback in red
Claude ran the acme_ventas tests over MCP: the TUI jumped to Modules and shows the same traceback the AI receives.

Restoring without unpacking

A zip backup is not extracted to disk: dump.sql is read from inside the zip and goes into psql through stdin, with the bar counted in bytes. Like Odoo, it does not stop on harmless errors: it counts them and marks them in red. Cancelling kills psql and warns that the database was left half done.

At the end the copy is neutralized: crons, mail and payments turned off, a new database.uuid and the administrator's password with a pbkdf2-sha512 hash compatible with passlib. The real administrator, base.user_admin: in databases created from the web manager its login is an email, and the first version changed nothing.

restore_backup(acme_prod.zip)2R
A restore in progress: the list of backups on the left, a progress bar at 80.3% loading dump.sql and the steps on the right
Restore: progress is bytes of dump.sql read, not a spinner.

A backup Odoo recognizes

Odoo's web manager saves a zip with dump.sql, the filestore/ folder and a manifest.json. odotui writes exactly that format, so its copy restores from any Odoo; and the other way round, it restores zips from the manager and from Odoo.sh, pg_restore .dump files, .sql, .sql.gz and loose folders.

The file is written under a hidden name and only renamed when it finishes. If it fails or is cancelled halfway, no broken zip is left in the folder for someone to restore tomorrow believing it is complete.

backup_database(acme_prod)1b
Databases tab with a backup in progress: bar at 40% compressing and the three steps, pg_dump, filestore and compression
Backup: pg_dump, filestore and manifest.json in a zip that Odoo's manager accepts.

The traceback, one key away

Odoo's log is painted in parts: time, level, database, logger and message. Web requests are compacted into method, path, status and time, and those of a second or more stand out. A traceback reads as one block —file, line, function, exception— under a red band that covers the whole error.

e leaves only the errors, y copies the last one with its traceback and a click on any red line copies its own, through wl-copy or OSC 52 if the terminal is on another machine. It is what you paste into an issue without selecting forty lines by hand.

read_logs(errors_only)ey
Instance tab: Odoo running on localhost:8069 and its live log with a UserError traceback highlighted in red
Instance: the live log, with the error and its traceback in a single red band.

Every click is an Action

Everything is done with the mouse or the keyboard, and underneath it is the same: every click, key or palette command becomes an Action that goes through App::apply. Clickable areas are registered in a HitMap rebuilt on every frame, so a button cannot stay clickable where it is no longer drawn.

That makes it possible to test the interface without opening it: the tests draw it on ratatui's TestBackend and check that each click reaches its Action. Database operations have their own suite against a Postgres 16 in CI, and scripts/mcp_smoke.py walks the MCP tools against a real Odoo 17 in docker: 36 checks passing.

update_modules(acme_ventas)4u
Modules tab: acme_ventas marked as changed with its new version and Odoo's output confirming the update
Modules: ⟳ marks the addon whose code changed, and U updates it.

What it is made with

  • Rust 2024
  • ratatui 0.30
  • tokio
  • MCP · stdio
  • PostgreSQL · pg_dump
  • Odoo 17 · docker
  • GitHub Actions

Screenshots with demo databases and addons: acme_prod and acme_ventas do not belong to any client. The TUI's interface is in Spanish. It is 12,500 lines of Rust.

Let’s talk

Curious how something here is solved, or have a similar problem?