Skip to content

Commit b5787fa

Browse files
committed
[IMP] modules: document the new cli option
We can now run some scripts after major upgrade before loading base. closes #233 Signed-off-by: Christophe Simonis (chs) <[email protected]>
1 parent 2f5a79a commit b5787fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/util/modules.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
In most cases module operations (rename, merge, remove, ...) should be performed in a
66
`base` script. The reason is that once the `base` module is upgraded, all the information
77
regarding modules should be already set in the DB for the upgrade process to function
8-
correctly.
8+
correctly. The command line option `--pre-upgrade-scripts` (available from Odoo 16) allows
9+
to run upgrade scripts *before* loading base. This is the recommended way to perform
10+
module operations after a major upgrade.
911
"""
1012

1113
try:

0 commit comments

Comments
 (0)