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.
This commit is contained in:
Cédric Krier committed 2024-03-13 08:42:10 +01:00
1 parent 02bbbc6549
commit e95057981d
1 file changed
-2
-2
View File
@@ -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):