summaryrefslogtreecommitdiff
path: root/odoo/modules/loading.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-03-20 11:45:11 +0100
committerChristophe Simonis <chs@odoo.com>2018-03-20 11:45:11 +0100
commite0345a4a3f4cfa8f4de8723c6b72b741b06483a1 (patch)
tree5ad51dbebfd89cd7e56bf12df2da3ecf4d8e9509 /odoo/modules/loading.py
parente9db6b6d9de1e0589e8871ca2e5e8dde8ec8cab7 (diff)
parent2835d299792ffa925d86ad3460057be713ac4fac (diff)
[MERGE] forward port branch 11.0 up to 2835d299792
Diffstat (limited to 'odoo/modules/loading.py')
-rw-r--r--odoo/modules/loading.py7
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: