diff options
| author | Xavier-Do <xdo@odoo.com> | 2020-01-24 08:34:29 +0000 |
|---|---|---|
| committer | Xavier-Do <xdo@odoo.com> | 2020-01-24 15:28:03 +0000 |
| commit | e2bbf402dc68a47d90c8ada884706dc6e32212bd (patch) | |
| tree | dbac8dcc6f8d6ad23e619b20ca700b1cf12d0615 | |
| parent | 97af72330a79f69352e293e0758e2a22b83720b7 (diff) | |
[FIX] core: ignore studio_customization when checking modules states
Studio customization is an exception, a data module added to ir_module
but that is never added to graph since there is no manifest.
OPW #2180885
closes #43880
closes odoo/odoo#43940
X-original-commit: 4051ac83b5e7cc1cb91a264b51401ad5601ad4e2
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
| -rw-r--r-- | odoo/modules/loading.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/odoo/modules/loading.py b/odoo/modules/loading.py index 846d9828cba..b5cde25115c 100644 --- a/odoo/modules/loading.py +++ b/odoo/modules/loading.py @@ -423,13 +423,12 @@ def load_modules(db, force_demo=False, status=None, update_module=False): cr.execute("SELECT name from ir_module_module WHERE state IN ('to install', 'to upgrade', 'to remove')") module_list = [name for (name,) in cr.fetchall()] if module_list: - _logger.error("Some module have inconsistent state, some dependency may be missing: %s", module_list) + _logger.error("Some modules have inconsistent states, some dependencies may be missing: %s", sorted(module_list)) - cr.execute("SELECT name from ir_module_module WHERE state = 'installed'") + cr.execute("SELECT name from ir_module_module WHERE state = 'installed' and name != 'studio_customization'") module_list = [name for (name,) in cr.fetchall() if name not in graph] if module_list: - _logger.error("Some module are not loaded, some dependency may be missing: %s", module_list) - + _logger.error("Some modules are not loaded, some dependencies or manifest may be missing: %s", sorted(module_list)) registry.loaded = True registry.setup_models(cr) |
