From e1dfed65a79c56bf59249a52f61e726fcffd3bee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 5 Nov 2022 09:54:14 +0100 Subject: [PATCH] Commit the transaction after creating indexes and update history issue11855 review433681003 --- trytond/modules/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trytond/modules/__init__.py b/trytond/modules/__init__.py index 7f56a7bf09..8cb7585ca0 100644 --- a/trytond/modules/__init__.py +++ b/trytond/modules/__init__.py @@ -298,11 +298,13 @@ def load_module_graph(graph, pool, update=None, lang=None): if model._sql_indexes: logger.info('index:create %s', model_name) model._update_sql_indexes() + transaction.commit() for model_name in models_to_update_history: model = pool.get(model_name) if model._history: logger.info('history:update %s', model.__name__) model._update_history_table() + transaction.commit() # Vacuum : while modules_todo: