summaryrefslogtreecommitdiff
path: root/addons/website_theme_install/models/ir_module_module.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/website_theme_install/models/ir_module_module.py')
-rw-r--r--addons/website_theme_install/models/ir_module_module.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/addons/website_theme_install/models/ir_module_module.py b/addons/website_theme_install/models/ir_module_module.py
index 532be6e52c6..a8eb951fc43 100644
--- a/addons/website_theme_install/models/ir_module_module.py
+++ b/addons/website_theme_install/models/ir_module_module.py
@@ -203,9 +203,6 @@ class IrModuleModule(models.Model):
for model_name in self._theme_model_names:
module._update_records(model_name, website)
- # reload registry to check if 'theme.utils'._<theme_name>_post_copy exists
- self.env.reset()
- self = self.env()[self._name].browse(self.id)
self.env['theme.utils']._post_copy(module, website)
def _theme_unload(self, website):