Commit 98a959e
committed
[IMP] util/modules: improve logs
The main goal of this patch is to improve the logs. Auto-install modules
could get all their dependencies installed as a result of the
installation of another module, but not necessarily depend on it. It was
wrong to say so in the logs.
Before:
```
2025-08-26 10:13:11,951 159473 INFO test_16_17 odoo.upgrade.util.modules: force install of module 'calendar_sms' (and its dependencies) because it is an auto install module and its dependency 'hr_payroll_holidays' has been force installed
```
After:
```
2025-08-26 10:14:30,753 160547 INFO test_16_17 odoo.upgrade.util.modules: force install of module 'calendar_sms' (and its dependencies) because it is an auto install module that got all its auto install dependencies installed by the force install of 'hr_payroll_holidays'
```
We take the opportunity to remove direct quey formatting and use
`format_query` instead with some other minor improvements.
closes #308
Signed-off-by: Christophe Simonis (chs) <[email protected]>1 parent d94144b commit 98a959e
1 file changed
+12
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
522 | | - | |
| 522 | + | |
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
527 | | - | |
| 527 | + | |
528 | 528 | | |
529 | | - | |
| 529 | + | |
| 530 | + | |
530 | 531 | | |
531 | 532 | | |
532 | 533 | | |
| |||
547 | 548 | | |
548 | 549 | | |
549 | 550 | | |
550 | | - | |
551 | | - | |
| 551 | + | |
| 552 | + | |
552 | 553 | | |
| 554 | + | |
553 | 555 | | |
554 | 556 | | |
555 | 557 | | |
| |||
623 | 625 | | |
624 | 626 | | |
625 | 627 | | |
626 | | - | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
627 | 632 | | |
628 | 633 | | |
629 | 634 | | |
| |||
0 commit comments