summaryrefslogtreecommitdiff
path: root/odoo/modules/loading.py
diff options
context:
space:
mode:
Diffstat (limited to 'odoo/modules/loading.py')
-rw-r--r--odoo/modules/loading.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/odoo/modules/loading.py b/odoo/modules/loading.py
index 6f2ee27c8e6..962559190c8 100644
--- a/odoo/modules/loading.py
+++ b/odoo/modules/loading.py
@@ -240,8 +240,9 @@ def load_module_graph(cr, graph, status=None, perform_checks=True,
if post_init:
getattr(py_module, post_init)(cr, registry)
- # validate all the views at a whole
- env['ir.ui.view']._validate_module_views(module_name)
+ if mode == 'update':
+ # validate the views that have not been checked yet
+ env['ir.ui.view']._validate_module_views(module_name)
# need to commit any modification the module's installation or
# update made to the schema or data so the tests can run