Find a file
Christophe Simonis 913d4d55b4 [IMP] util.update_record_from_xml
Set the `xml_filename` argument of the `xml_import` records.

closes odoo/upgrade-util#289

Signed-off-by: Christophe Simonis (chs) <chs@odoo.com>
2026-04-22 15:40:29 +00:00
src [IMP] util.update_record_from_xml 2026-04-22 15:40:29 +00:00
tools [FIX] tools/fetch-release-notes-video-id.py 2026-02-06 10:25:13 +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-04-03 09:48:32 +00:00
LICENSE [IMP] initial file structure 2013-05-02 11:13:59 +02:00
pyproject.toml [chore] pre-commit autoupdate + lint 2025-06-18 11:06:02 +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". ↩︎