From 3da633d78941d01b4d092946c36f40584d150dd0 Mon Sep 17 00:00:00 2001 From: "Krzysztof Magusiak (krma)" Date: Thu, 7 Nov 2024 14:55:35 +0000 Subject: [PATCH] [IMP] core: clear environment reset `reset()` is on the transaction. task-4201974 closes odoo/design-themes#1008 Related: odoo/odoo#186635 Signed-off-by: Christophe Monniez (moc) --- test_themes/tests/test_theme_upgrade.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test_themes/tests/test_theme_upgrade.py b/test_themes/tests/test_theme_upgrade.py index 7b31d7659..3a27e5e83 100644 --- a/test_themes/tests/test_theme_upgrade.py +++ b/test_themes/tests/test_theme_upgrade.py @@ -50,8 +50,7 @@ def test_01_theme_upgrade_post_copy(env): # 5. Upgrade Theme Nano theme_nano_module.button_immediate_upgrade() - env.reset() # clear the set of environments - env = env() # get an environment that refers to the new registry + env.transaction.reset() # clear the set of environments assert Website.viewref('website.template_footer_descriptive').active is False, \ "Theme Nano custo should NOT be applied"