From e95057981deb7d2e45f3c40c7e360f7e6db41154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 13 Mar 2024 08:42:10 +0100 Subject: [PATCH] Remove ending commit when loading modules The commit call was added by a6624f31ff20 to release lock because Cache.resets was called inside the transaction. But Cache.resets was removed in a83631f4ba67 and Cache does not create any new transaction since. And since 2fd8c5f88265 the transaction is even committed only on module update. --- trytond/trytond/modules/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/trytond/trytond/modules/__init__.py b/trytond/trytond/modules/__init__.py index 4debff5b2a..ac8eb5d3e3 100644 --- a/trytond/trytond/modules/__init__.py +++ b/trytond/trytond/modules/__init__.py @@ -376,8 +376,6 @@ def load_modules( Module = pool.get('ir.module') Module.update_list() - # Need to commit to unlock SQLite database - transaction.commit() if not Transaction().connection: with Transaction().start(database_name, 0):