Commit e71e5a5
committed
[FIX] util.trigger_auto_install
Correctly set the auto_install modules as installed.
Just changing the state is not enough. All its dependencies should be
installed.
As example, in version 16.0, the new `spreadsheet_dashboard_account` module
is defined as
```
{
'depends': ['spreadsheet_dashboard', 'account'],
'auto_install': ['account'],
}
```
So, when `account` is installed, this new module should be auto
installed, but also its uninstalled dependencies. In this case, the
module `spreadsheet_dashboard` should also be marked as installed, as
well as its dependencies, recursively.
Part of odoo/upgrade#5343
Signed-off-by: Christophe Simonis (chs) <chs@odoo.com>1 parent 8df49d3 commit e71e5a5
1 file changed
+4
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
592 | 592 | | |
593 | 593 | | |
594 | 594 | | |
595 | | - | |
596 | 595 | | |
597 | 596 | | |
598 | 597 | | |
| |||
604 | 603 | | |
605 | 604 | | |
606 | 605 | | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | 606 | | |
613 | 607 | | |
614 | 608 | | |
615 | 609 | | |
616 | 610 | | |
617 | | - | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
618 | 615 | | |
619 | 616 | | |
620 | 617 | | |
| |||
0 commit comments