Skip to content

Commit

Permalink
[IMP] core: clear environment reset
Browse files Browse the repository at this point in the history
`reset()` is on the transaction.

task-4201974

closes odoo#1008

Related: odoo/odoo#186635
Signed-off-by: Christophe Monniez (moc) <[email protected]>
  • Loading branch information
kmagusiak committed Nov 12, 2024
1 parent f63862f commit 3da633d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test_themes/tests/test_theme_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ def _simulate_user_manual_change():

# 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"
Expand Down

0 comments on commit 3da633d

Please sign in to comment.