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.
(grafted from 0548d73c7ce3b4e07b6b76007f2592ed2be945ff)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier committed 2024-03-13 08:42:10 +01:00
1 parent 60b5e47ed2
commit e68d2fb949
1 file changed
-2
-2
View File
@@ -435,8 +435,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):