MANIFEST File
The MANIFEST file lives at the project root and controls which Odoo modules are installed and which addon paths are active. It is a Python dict literal (not JSON — comments and trailing commas are allowed).
Example
{
"version": 17.0,
# Modules loaded server-wide (available without database)
"server-wide-modules": ["web"],
# Python version for the Odoo container
"python_version": "3.12",
# Modules to install
"install": [
"sale",
"purchase",
"account",
"stock",
"my_custom_module",
],
# Modules to uninstall (if present)
"uninstall": [
"web_tree_many2one_clickable",
],
# Modules from "uninstall" whose code is gone and that may be
# uninstalled anyway - their tables are dropped
"uninstall_without_source": [
"partner_simple_default_avatar",
],
# Modules to uninstall only in DEVMODE
"devmode_uninstall": [
"password_security",
],
# Extra SQL files run after a DEVMODE restore (relative to the project
# root). A module's data/neutralize.sql is run by Odoo itself.
"neutralize": [
"devscripts/neutralize_interfaces.sql",
],
# Modules to run tests for
"tests": ["my_custom_module"],
# Robot suites for `odoo robot run-all` (glob patterns, project root)
"robotests": ["addons/*/tests/robot/*.robot"],
# Run these update steps before the main update
"before-odoo-update": [
["update", "base"],
],
# Where Odoo looks for modules
"addons_paths": [
"odoo/odoo/addons",
"odoo/addons",
"enterprise", # Odoo Enterprise (if available)
"addons_tools", # zodoo helper modules
# "addons_OCA/sale-workflow",
# "addons_OCA/account-invoicing",
],
}
Fields
| Field | Description |
|---|---|
version | Odoo version as float: 17.0, 16.0, etc. |
server-wide-modules | Loaded without a database. Always include "web". |
python_version | Python version for the Odoo Docker image. |
install | Modules to install/keep installed. |
uninstall | Modules to force-uninstall. Their missing dependencies are ignored when resolving requirements. |
devmode_uninstall | Modules to uninstall when DEVMODE=1. |
uninstall_without_source | Modules from uninstall (or devmode_uninstall) whose code is no longer in any addons path and that may be uninstalled anyway. Without this entry odoo update lists the models that would be dropped and asks you to type the module name; non-interactive runs abort before any service is stopped. |
tests | Modules to run tests for (used by odoo module run-tests). |
robotests | Glob patterns (relative to the project root) selecting the robot suites odoo robot run-all runs and odoo robot list / odoo module list-robot-test-files (zCICD) report. Without it, every *.robot file of the project is used. |
neutralize | Extra SQL files (relative to the project root) that DEVMODE=1 runs after a restore, after Odoo's and zodoo's neutralization. Modules that talk to external systems should rather ship a data/neutralize.sql - Odoo runs it on odoo-bin neutralize, the database manager and every zodoo restore. From Odoo 16 on, entries pointing to a module's data/neutralize.sql are skipped, because Odoo already ran them. |
before-odoo-update | Module update steps to run before main update. |
addons_paths | Directories where Odoo searches for modules. Order matters. |
odoo_dir | Where the Odoo source is cloned (default: odoo). |
upgrade_path | Path to upgrade-utils for OpenUpgrade migrations. |
Python packages in the image
odoo reload collects the external_dependencies of these modules and writes
them into the image requirements:
- The modules on the MANIFEST
install(anduninstall) list. - The modules installed in the project database (
PYTHON_DEPS_FROM_DB=1, default). This covers modules installed through the Apps menu that are not on the MANIFEST list. States read:installed,to upgrade,to removeandto install. - The modules in
PYTHON_DEPS_EXTRA_MODULES: modules that are about to be installed and are neither on the MANIFEST list nor in the database yet. - All Odoo
dependsof these modules (transitive) and the matchingauto_installmodules.
Modules that are only available in an addons path add no packages.
Rules:
-
to installcounts. Odoo writes this state only after the Python dependency check passed and rolls it back when an install fails, so ato installin the database is a persistent state. -
No database access (database missing, postgres not running, new project):
odoo reloadprints a yellow hint per database and uses the MANIFEST list only. SetPYTHON_DEPS_FROM_DB=0to build without a database on purpose. -
New modules before their install: a module that arrives with a pull and is installed right after it is not in the database yet. Pass it for this one reload, so that the image gets its packages before
odoo updateruns:odoo reload -cR "PYTHON_DEPS_EXTRA_MODULES=mod_a,mod_b"odoo buildodoo update mod_a,mod_bThe value is not written to the project settings. It lives in the generated run settings of this reload, so the following
odoo buildstill sees it, and it ends with the nextodoo reloadwithout-cR; by then the modules are in the database. Without the setting the requirements hash stays as before. A name without source code in an addons path stops the reload. -
odoo builduses the same modules: before it builds,odoo buildchecksrequirements.hashagainst the requirements (seeodoo requirements-check). This check takes the same module set as the lastodoo reload, including the database modules andPYTHON_DEPS_EXTRA_MODULES. If the files are stale, it regenerates them with the samePYTHON_DEPS_EXTRA_MODULESvalue. -
Several databases: list them in
PYTHON_DEPS_DBS; the image gets the union of their modules. -
Missing source code: a module installed in a database but in no addons path is reported in red with module name and database. The build continues, because Odoo itself starts with missing modules, but the module's Python packages are not in the image. Add its repository to
addons_pathsor uninstall the module. -
The package list is sorted before the requirements hash is built, so the same input gives the same hash and the same image.
Running Odoo from a non-standard directory
By default the Odoo source is cloned into odoo/ inside the project. Set
odoo_dir to use a different folder — useful when you keep several Odoo
versions side by side in one project, or when a custom Docker setup expects
the source somewhere else:
{
"odoo_dir": "odoo2"
}
zodoo resolves the server directory from this value at runtime; there is no
separate setting for it. Remember to keep addons_paths in step, since the
<odoo_dir>/odoo/addons and <odoo_dir>/addons paths are derived from it.
OCA addons
OCA modules are managed via gimera. Add the desired OCA repo to addons_paths (uncomment in template), then run:
gimera apply
odoo reload