From 91104cc801191105c35c99fb2032ce2469efaeb7 Mon Sep 17 00:00:00 2001 From: Alvaro Fuentes Date: Mon, 17 Mar 2025 16:47:16 +0100 Subject: [PATCH] [IMP] modules: document the new cli option We can now run some scripts after major upgrade before loading base. --- src/util/modules.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/util/modules.py b/src/util/modules.py index 5b155598..0167b0ee 100644 --- a/src/util/modules.py +++ b/src/util/modules.py @@ -5,7 +5,11 @@ In most cases module operations (rename, merge, remove, ...) should be performed in a `base` script. The reason is that once the `base` module is upgraded, all the information regarding modules should be already set in the DB for the upgrade process to function -correctly. +correctly. In order to run specific upgrade scripts after a major upgrade the option +`--pre-upgrade-scripts`[^1] should be used in the command line. All the specified scripts +will be run _before_ loading base. + +[^1]: available from Odoo 16.0 """ try: