mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[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) <moc@odoo.com>
This commit is contained in:
@@ -50,8 +50,7 @@ def test_01_theme_upgrade_post_copy(env):
|
|||||||
|
|
||||||
# 5. Upgrade Theme Nano
|
# 5. Upgrade Theme Nano
|
||||||
theme_nano_module.button_immediate_upgrade()
|
theme_nano_module.button_immediate_upgrade()
|
||||||
env.reset() # clear the set of environments
|
env.transaction.reset() # clear the set of environments
|
||||||
env = env() # get an environment that refers to the new registry
|
|
||||||
|
|
||||||
assert Website.viewref('website.template_footer_descriptive').active is False, \
|
assert Website.viewref('website.template_footer_descriptive').active is False, \
|
||||||
"Theme Nano custo should NOT be applied"
|
"Theme Nano custo should NOT be applied"
|
||||||
|
|||||||
Reference in New Issue
Block a user