Find a file
Christophe Simonis f3431df770 [FIX] test_util.py: ignore "serie" typo
closes odoo/upgrade-util#453

Related: odoo/upgrade#10527
Signed-off-by: Christophe Simonis (chs) <chs@odoo.com>
2026-06-18 04:46:03 +00:00
src [FIX] test_util.py: ignore "serie" typo 2026-06-18 04:46:03 +00:00
tools [ADD] spreadsheet.multiprocess_commands 2026-05-08 18:24:45 +00:00
.editorconfig [ADD] editorconfig 2023-11-17 16:38:43 +00:00
.gitignore [IMP] make package pip-installable 2023-11-08 15:09:13 +01:00
.pre-commit-config.yaml [chore] pre-commit autoupdate 2026-06-18 04:46:03 +00:00
LICENSE [IMP] initial file structure 2013-05-02 11:13:59 +02:00
pyproject.toml [IMP] pre-commit: allow ignoring typos with a noqa comment 2026-06-18 04:46:03 +00:00
README.md [IMP] README: refer to online docs and minor improvements 2025-04-14 18:35:50 +00:00
requirements-dev.txt [IMP] use pre-commit to ensure code quality 2020-03-27 14:11:14 +00:00
requirements.txt [ADD] requirements*.txt files 2020-03-13 11:48:03 +00:00

🧰 Upgrade Utils

This repository contains helper functions1 to facilitate the writing of upgrade scripts.

The functions in this repo are meant to work (sometimes just not fail) from Odoo 7.0 up to latest version. Thus the only supported version of this repo is master head.

Installation

Once you have cloned this repository locally, start odoo with the src directory prepended to the --upgrade-path option.

$ ./odoo-bin --upgrade-path=/path/to/upgrade-util/src,/path/to/other/upgrade/script/directory [...]

Alternative

On platforms where you don't manage Odoo yourself, you can install this package via pip:

$ python3 -m pip install git+https://github.com/odoo/upgrade-util@master

You can freeze the hash version when installing in this fashion. Just replace master by the hash of the commit you want to target.

On Odoo.sh it is recommended to add it to the requirements.txt of your repository:

odoo_upgrade @ git+https://github.com/odoo/upgrade-util@master

How to use the helper functions?

Once installed, the following packages are available

  • odoo.upgrade.util: the helper functions.
  • odoo.upgrade.testing: base TestCase classes

Documentation


  1. We call them "utils". ↩︎