summaryrefslogtreecommitdiff
path: root/addons/website_theme_install/models/ir_module_module.py
diff options
context:
space:
mode:
authorfw-bot <otis@odoo.com>2019-10-01 22:46:39 +0000
committerqsm-odoo <qsm@odoo.com>2019-10-02 01:02:56 +0000
commitb77d8a0974962e36c437b339b1bb6aa14b3dd4a6 (patch)
tree34dc1d5da1b83d0f192694c6e7becc8648b06198 /addons/website_theme_install/models/ir_module_module.py
parenteded0294ab1c5dfc6eb268f84d53ada9ba775352 (diff)
[FIX] website_theme_install: properly attach new views to specific views
When a theme declares a view (a 'theme.ir.ui.view') with an inherit_id, on installation, a view (a 'ir.ui.view') will be created with the corresponding inherit_id. The problem is that this inherit_id may reference a view that has been cow'ed at some point and thus the new theme view will be attached to the non specific view by mistake. Part of https://github.com/odoo/odoo/pull/37142 closes odoo/odoo#37750 X-original-commit: https://github.com/odoo/odoo/commit/f30b4dfdb90515bc54e691302f894184c9b1c55b Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com> Co-authored-by: Romain Derie <rde@odoo.com>
Diffstat (limited to 'addons/website_theme_install/models/ir_module_module.py')
-rw-r--r--addons/website_theme_install/models/ir_module_module.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/addons/website_theme_install/models/ir_module_module.py b/addons/website_theme_install/models/ir_module_module.py
index 316cb45331b..b9239df97e9 100644
--- a/addons/website_theme_install/models/ir_module_module.py
+++ b/addons/website_theme_install/models/ir_module_module.py
@@ -189,7 +189,6 @@ class IrModuleModule(models.Model):
ON CONFLICT DO NOTHING""",
(dst_field, new_rec.id, src_field, old_rec.id))
-
def _theme_load(self, website):
"""
For every type of model in ``self._theme_model_names``, and for every theme in ``self``: