diff options
Diffstat (limited to 'odoo/modules/loading.py')
| -rw-r--r-- | odoo/modules/loading.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/odoo/modules/loading.py b/odoo/modules/loading.py index 083fda4203b..4dda572fb13 100644 --- a/odoo/modules/loading.py +++ b/odoo/modules/loading.py @@ -400,7 +400,12 @@ def load_modules(db, force_demo=False, status=None, update_module=False): cr.commit() _logger.info('Reloading registry once more after uninstalling modules') api.Environment.reset() - return odoo.modules.registry.Registry.new(cr.dbname, force_demo, status, update_module) + registry = odoo.modules.registry.Registry.new( + cr.dbname, force_demo, status, update_module + ) + registry.check_tables_exist(cr) + cr.commit() + return registry # STEP 6: verify custom views on every model if update_module: |
