summaryrefslogtreecommitdiff
path: root/odoo/modules/loading.py
diff options
context:
space:
mode:
authorChristophe Monniez <moc@odoo.com>2017-12-19 13:50:09 +0100
committerChristophe Monniez <moc@odoo.com>2018-01-18 13:27:33 +0100
commitad7bf6b9c9b3f23563adda0e941468570a14e477 (patch)
treee06b0567b8f9c21af043b0f132754e26f596b72d /odoo/modules/loading.py
parentb356b190338e3ee032b9e3a7f670f76468965006 (diff)
[REM] config, loading: remove test-commit and test-report-directory
As there are few use cases for the --test-commit and --test-report-directory options, they are removed.
Diffstat (limited to 'odoo/modules/loading.py')
-rw-r--r--odoo/modules/loading.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/odoo/modules/loading.py b/odoo/modules/loading.py
index 6c4600c8109..083fda4203b 100644
--- a/odoo/modules/loading.py
+++ b/odoo/modules/loading.py
@@ -44,12 +44,9 @@ def load_module_graph(cr, graph, status=None, perform_checks=True, skip_modules=
'module %s: an exception occurred in a test', module_name)
return False
finally:
- if tools.config.options['test_commit']:
- cr.commit()
- else:
- cr.rollback()
- # avoid keeping stale xml_id, etc. in cache
- odoo.registry(cr.dbname).clear_caches()
+ cr.rollback()
+ # avoid keeping stale xml_id, etc. in cache
+ odoo.registry(cr.dbname).clear_caches()
def _get_files_of_kind(kind):