Skip to main content

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​

FieldDescription
versionOdoo version as float: 17.0, 16.0, etc.
server-wide-modulesLoaded without a database. Always include "web".
python_versionPython version for the Odoo Docker image.
installModules to install/keep installed.
uninstallModules to force-uninstall. Their missing dependencies are ignored when resolving requirements.
devmode_uninstallModules to uninstall when DEVMODE=1.
uninstall_without_sourceModules 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.
testsModules to run tests for (used by odoo module run-tests).
robotestsGlob 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.
neutralizeExtra 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-updateModule update steps to run before main update.
addons_pathsDirectories where Odoo searches for modules. Order matters.
odoo_dirWhere the Odoo source is cloned (default: odoo).
upgrade_pathPath 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:

  1. The modules on the MANIFEST install (and uninstall) list.
  2. 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 remove and to install.
  3. 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.
  4. All Odoo depends of these modules (transitive) and the matching auto_install modules.

Modules that are only available in an addons path add no packages.

Rules:

  • to install counts. Odoo writes this state only after the Python dependency check passed and rolls it back when an install fails, so a to install in the database is a persistent state.

  • No database access (database missing, postgres not running, new project): odoo reload prints a yellow hint per database and uses the MANIFEST list only. Set PYTHON_DEPS_FROM_DB=0 to 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 update runs:

    odoo reload -cR "PYTHON_DEPS_EXTRA_MODULES=mod_a,mod_b"
    odoo build
    odoo update mod_a,mod_b

    The value is not written to the project settings. It lives in the generated run settings of this reload, so the following odoo build still sees it, and it ends with the next odoo reload without -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 build uses the same modules: before it builds, odoo build checks requirements.hash against the requirements (see odoo requirements-check). This check takes the same module set as the last odoo reload, including the database modules and PYTHON_DEPS_EXTRA_MODULES. If the files are stale, it regenerates them with the same PYTHON_DEPS_EXTRA_MODULES value.

  • 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_paths or 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