From c1d4aa7cfc783db3a660a5449b1b2de4ef10bd29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 28 Sep 2012 18:08:49 +0200 Subject: [PATCH] Commit cursor after creation of wizard instance Before running InstallUpgrade, the cursor must be committed to avoid transactional dead lock. --- trytond/tests/test_tryton.py | 1 + 1 file changed, 1 insertion(+) diff --git a/trytond/tests/test_tryton.py b/trytond/tests/test_tryton.py index 57a79e3fa9..6a95bb04a7 100644 --- a/trytond/tests/test_tryton.py +++ b/trytond/tests/test_tryton.py @@ -141,6 +141,7 @@ def install_module(name): InstallUpgrade = POOL.get('ir.module.module.install_upgrade', type='wizard') instance_id, _, _ = InstallUpgrade.create() + transaction.cursor.commit() InstallUpgrade(instance_id).transition_upgrade() InstallUpgrade.delete(instance_id) transaction.cursor.commit()