Commit 19d5972
committed
[IMP] util.modules: new hack to force the execution of upgrade scripts
Allow ``_force_upgrade_of_fresh_module`` in upgrade-util to force the execution
of upgrade script for new install modules
Unlike the old hack where
1. ``module_node.init`` can be changed by ``_force_upgrade_of_fresh_module``
through changing the global ``config['init']``.
2. ``module_node.init`` was propagated only through one of the longest module
dependency path.
The new hack uses a new explicit variable ``registry._force_upgrade_scripts``
without changing the global ``config``.
odoo/odoo#189000
closes #176
Signed-off-by: Raphael Collet <rco@odoo.com>1 parent 596b3b1 commit 19d5972
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
895 | 895 | | |
896 | 896 | | |
897 | 897 | | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
898 | 903 | | |
899 | 904 | | |
900 | 905 | | |
| |||
0 commit comments