[REF] website_theme_install: remove dead code in theme install code

closes odoo/odoo#37569

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
qsm-odoo
2019-09-30 10:00:51 +00:00
parent 0c7f7b186d
commit bd701e1e03
@@ -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):