Commit 98befcc
committed
[FIX] util/modules: keep reason for force install
Since we delay force installs, it is not OK to keep only their names. We
are losing the actual reason why they are installed.
Compare, before:
```
2025-12-05 10:49:53,136 169875 INFO test_16_17 odoo.modules.migration: module base: Running migration [0.0.0>] post-01-modules-auto-discovery
2025-12-05 10:49:55,873 169875 INFO test_16_17 odoo.upgrade.util.modules: force install of module 'onboarding' (and its dependencies) because it's a new dependency of account, payment
2025-12-05 10:49:55,876 169875 INFO test_16_17 odoo.upgrade.util.modules: force install of module 'base_import_module' (and its dependencies) because it has been explicitly asked for
2025-12-05 10:49:55,880 169875 INFO test_16_17 odoo.upgrade.util.modules: force install of module 'iap_extract' (and its dependencies) because it has been explicitly asked for
2025-12-05 10:49:55,885 169875 INFO test_16_17 odoo.upgrade.util.modules: force install of module 'account_invoice_extract' (and its dependencies) because it is an auto install module that got all its auto install dependencies installed by the force install of 'iap_extract'
2025-12-05 10:49:55,890 169875 INFO test_16_17 odoo.upgrade.util.modules: force install of module 'account_payment_term' (and its dependencies) because it has been explicitly asked for
```
With after:
```
2025-12-05 10:44:54,837 164125 INFO test_16_17 odoo.modules.migration: module base: Running migration [0.0.0>] post-01-modules-auto-discovery
2025-12-05 10:44:56,712 164125 INFO test_16_17 odoo.upgrade.util.modules: force install of module 'onboarding' (and its dependencies) because it's a new dependency of account, payment
2025-12-05 10:44:56,714 164125 INFO test_16_17 odoo.upgrade.util.modules: force install of module 'base_import_module' (and its dependencies) because it has been explicitly asked for
2025-12-05 10:44:56,717 164125 INFO test_16_17 odoo.upgrade.util.modules: force install of module 'iap_extract' (and its dependencies) because it's an auto install module and all its dependencies are installed
2025-12-05 10:44:56,720 164125 INFO test_16_17 odoo.upgrade.util.modules: force install of module 'account_invoice_extract' (and its dependencies) because it is an auto install module that got all its auto install dependencies installed by the force install of 'iap_extract'
2025-12-05 10:44:56,724 164125 INFO test_16_17 odoo.upgrade.util.modules: force install of module 'account_payment_term' (and its dependencies) because it's an auto install module and all its dependencies are installed
```
closes #365
Signed-off-by: Christophe Simonis (chs) <chs@odoo.com>1 parent 9a1be7d commit 98befcc
2 files changed
+11
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
| 343 | + | |
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | | - | |
| 363 | + | |
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
414 | | - | |
415 | | - | |
| 414 | + | |
416 | 415 | | |
417 | 416 | | |
418 | 417 | | |
| |||
440 | 439 | | |
441 | 440 | | |
442 | 441 | | |
443 | | - | |
444 | | - | |
| 442 | + | |
445 | 443 | | |
446 | 444 | | |
447 | 445 | | |
| |||
596 | 594 | | |
597 | 595 | | |
598 | 596 | | |
599 | | - | |
| 597 | + | |
600 | 598 | | |
601 | 599 | | |
602 | 600 | | |
| |||
1100 | 1098 | | |
1101 | 1099 | | |
1102 | 1100 | | |
1103 | | - | |
1104 | | - | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
1105 | 1104 | | |
1106 | 1105 | | |
1107 | 1106 | | |
| |||
1115 | 1114 | | |
1116 | 1115 | | |
1117 | 1116 | | |
| 1117 | + | |
| 1118 | + | |
1118 | 1119 | | |
1119 | 1120 | | |
1120 | 1121 | | |
| |||
0 commit comments