turbodoo 0.1.0 · IDE for Odoo
An IDE for Odoo, in your terminal
turbodoo is a keyboard-first workbench for Odoo addons, in the spirit of the Borland IDEs: an Explorer that unfolds addons into models, fields and methods; Python intelligence that knows Odoo; a debugger for scripts and a local Odoo server; new modules and fields generated after a preview; and git. It also reads a code base from the command line, without running it.
Free software (GPL 3) · Linux, macOS and Windows · Odoo 19 and 20 · built on Textual
- turbodoo addonsevery manifest, nothing run
- turbodoo modelsfields, extensions, relations
- turbodoothe IDE, in the terminal
Tour
What 0.1.0 brings
Screenshots from turbodoo's own documentation for this release.
Examples
Read a code base, run nothing
Two small addons, read by turbodoo 0.1.0 from the command line. The output is what it printed.
Addons, from their manifests
Version, dependencies and files of each addon. Manifests are read, never run, and a dependency outside the folder is named.
# What is in a folder of addons: read from the manifests, nothing is run # (sed shortens the folder's full path) turbodoo addons addons | sed "s|$PWD/||"
library 19.0.1.0.0 Library
depends: base
files: 4 python, 1 xml, 1 security
library_loans 19.0.1.0.0 Library loans
depends: library
files: 4 python
info: 'base' is not in this folder (needed by library)
2 addons in addonsModels, by module
Each module's models, and which ones it only extends.
# Every model of the folder, by module: defined here, or only extended turbodoo models addons
library: library.book model Book library_loans: library.loan model Loan library.book extends 2 models defined, 0 only extended, in 2 modules unresolved: 2 undefined_comodel
One model across addons
Fields from every module that adds them, with file and line, and relations both ways.
from odoo import api, fields, models class LibraryBook(models.Model): _name = "library.book" _description = "Book" name = fields.Char(required=True) isbn = fields.Char() author_id = fields.Many2one("res.partner", string="Author") pages = fields.Integer() is_long = fields.Boolean(compute="_compute_is_long") @api.depends("pages") def _compute_is_long(self): for book in self: book.is_long = book.pages > 500
from odoo import fields, models class LibraryLoan(models.Model): _name = "library.loan" _description = "Loan" book_id = fields.Many2one("library.book", required=True) partner_id = fields.Many2one("res.partner", string="Borrower") due = fields.Date() class LibraryBook(models.Model): _inherit = "library.book" loan_ids = fields.One2many("library.loan", "book_id") on_loan = fields.Boolean()
# One model across the addons: where it is defined and extended, each field # with the module and line that adds it, and its relations, also incoming turbodoo models addons library.book --incoming
library.book [model, library] Book defined in library at library/models/book.py:4 extended by (1): library_loans library_loans/models/loan.py:13 fields (7): author_id Many2one → res.partner [library] library/models/book.py:10 is_long Boolean computed by _compute_is_long [library] library/models/book.py:12 isbn Char [library] library/models/book.py:9 loan_ids One2many → library.loan (book_id) [library_loans] library_loans/models/loan.py:16 name Char [library] library/models/book.py:8 on_loan Boolean [library_loans] library_loans/models/loan.py:17 pages Integer [library] library/models/book.py:11 relations: library.book [model, library] Book ├─ author_id → res.partner [many2one] (not defined here) ├─ loan_ids → library.loan [one2many] └─ ← library.loan.book_id [many2one]
Install
Ready to run
Packages and binaries
Linux (.deb, .rpm, .apk, Arch, AppImage), macOS (Apple silicon or Intel) and Windows (.msi or .zip), with the debugger inside, on the release page. They are not signed yet.
As a Python tool
Python 3.11 or newer; the python extra brings basedpyright and debugpy.
uv tool install 'turbodoo[python] @ git+https://github.com/divengine/turbodoo@v0.1.0'
Start
In a folder of addons:
turbodoo
Python completion and navigation need basedpyright where turbodoo finds it. The sample addons and the commands to run the examples again with turbodoo 0.1.0 are in the site's repository.